diff --git a/bin/repos b/bin/repos index aec3453..410fa40 100755 --- a/bin/repos +++ b/bin/repos @@ -20,7 +20,7 @@ selected=$(gh repo list "$organization" \ --header-lines=1 \ --layout=reverse \ --bind "ctrl-o:execute:gh repo view -w ${organization}/{1}" \ - --preview "gh repo view ${organization}/{1} | bat -f -l=md --style=grid" \ + --preview "GH_FORCE_TTY=49% gh repo view ${organization}/{1} | glow -" \ --preview-window up ) [ -n "${selected}" ] && gh repo clone "${organization}/$(echo "${selected}" | awk '{print $1}')" diff --git a/homebrew/core.Brewfile b/homebrew/core.Brewfile index 02426db..07c6b23 100644 --- a/homebrew/core.Brewfile +++ b/homebrew/core.Brewfile @@ -13,4 +13,5 @@ brew "exa" # Better ls brew "bat" # Better cat brew "fzf" # Fuzzy finder brew "tealdeer" # Mini man page -brew "direnv" # Environment variables +brew "direnv" # Environment variables +brew "glow" # Markdown previews diff --git a/nvim.configlink/init.lua b/nvim.configlink/init.lua index 8378f7d..9a12735 100644 --- a/nvim.configlink/init.lua +++ b/nvim.configlink/init.lua @@ -115,6 +115,9 @@ require('packer').startup(function(use) -- Markdown renderer / wiki notes use 'vimwiki/vimwiki' + -- Markdown pretty view + use 'ellisonleao/glow.nvim' + -- Navigation use { 'ggandor/lightspeed.nvim',