From d995320817eb50a5977cadde6d481a28a6114024 Mon Sep 17 00:00:00 2001 From: nomadics9 Date: Sat, 12 Oct 2024 18:34:26 +0300 Subject: [PATCH] MD preview plugin --- nvim/init.lua | 1 + nvim/lua/kickstart/plugins/glow.lua | 16 ++++++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 nvim/lua/kickstart/plugins/glow.lua diff --git a/nvim/init.lua b/nvim/init.lua index 1a1e6d6..72df63d 100644 --- a/nvim/init.lua +++ b/nvim/init.lua @@ -861,6 +861,7 @@ require('lazy').setup({ -- My plugins require 'kickstart.plugins.bufferline', + require 'kickstart.plugins.glow', -- NOTE: The import below can automatically add your own plugins, configuration, etc from `lua/custom/plugins/*.lua` -- This is the easiest way to modularize your config. diff --git a/nvim/lua/kickstart/plugins/glow.lua b/nvim/lua/kickstart/plugins/glow.lua new file mode 100644 index 0000000..af47c3b --- /dev/null +++ b/nvim/lua/kickstart/plugins/glow.lua @@ -0,0 +1,16 @@ +return { + 'ellisonleao/glow.nvim', + cmd = 'Glow', + config = true, + opts = { + glow_path = '', -- will be filled automatically with your glow bin in $PATH, if any + --install_path = '~/.local/bin', -- default path for installing glow binary + border = 'shadow', -- floating window border config + --style = 'dark|light', -- filled automatically with your current editor background, you can override using glow json style + pager = false, + width = 80, + height = 100, + width_ratio = 0.7, -- maximum width of the Glow window compared to the nvim window size (overrides `width`) + height_ratio = 0.7, + }, +}