aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lua/user/pack.lua11
1 files changed, 11 insertions, 0 deletions
diff --git a/lua/user/pack.lua b/lua/user/pack.lua
index 1a37d28..6c99473 100644
--- a/lua/user/pack.lua
+++ b/lua/user/pack.lua
@@ -362,8 +362,19 @@ return packer.startup(function(use)
use({
'ellisonleao/glow.nvim', -- Markdown Preview
config = function()
+ local glow_path
+
+ -- Check if glow exists in ~/.local/bin
+ if vim.fn.executable('~/.local/bin/glow') == 1 then
+ glow_path = '~/.local/bin/glow'
+ else
+ -- Fallback to /usr/bin/glow
+ glow_path = '/usr/bin/glow'
+ end
+
require('glow').setup({
style = 'dark',
+ glow_path = glow_path,
})
end,
})