From f5d154ab58ef196a8a37247b2bceafbbafe0d45d Mon Sep 17 00:00:00 2001 From: nomadics9 Date: Sat, 12 Oct 2024 16:45:21 +0300 Subject: [PATCH] MD preview plugin --- nvim/init.lua | 2 +- nvim/lua/kickstart/plugins/bottomline.lua | 45 ------------------- .../kickstart/plugins/markdown-preview.lua | 9 ++++ 3 files changed, 10 insertions(+), 46 deletions(-) delete mode 100644 nvim/lua/kickstart/plugins/bottomline.lua create mode 100644 nvim/lua/kickstart/plugins/markdown-preview.lua diff --git a/nvim/init.lua b/nvim/init.lua index c186b01..b1807cb 100644 --- a/nvim/init.lua +++ b/nvim/init.lua @@ -861,7 +861,7 @@ require('lazy').setup({ -- My plugins require 'kickstart.plugins.bufferline', - -- require 'kickstart.plugins.bottomline' + require 'kickstart.plugins.markdown-preview', -- 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/bottomline.lua b/nvim/lua/kickstart/plugins/bottomline.lua deleted file mode 100644 index 946ebb8..0000000 --- a/nvim/lua/kickstart/plugins/bottomline.lua +++ /dev/null @@ -1,45 +0,0 @@ --- bottomline - -return { - 'mnjm/winline.nvim', - dependencies = { - 'lewis6991/gitsigns.nvim', - 'nvim-tree/nvim-web-devicons' - }, - config = function() - require('winline').setup { - -- Enable winline - enable = true, - - -- Minimal components for a status line that feels like a command line - components = { - left = { - {'mode'}, -- Shows the current mode (Normal, Insert, etc.) - }, - right = { - {'line_col'}, -- Show line and column numbers - }, - }, - - -- Disable separators and reduce padding for a minimal look - options = { - separators = true, -- No separators between components - padding = 0, -- Minimal padding for a compact look - }, - - -- Make it look cohesive with the command line - colors = { - active = '#282c34', -- Dark background for the active window - inactive = '#3e4451', -- Slightly lighter background for inactive windows - }, - } - - -- Set Neovim options to make the command line always visible and match the style - vim.opt.cmdheight = 0 -- Always show the command line - vim.cmd [[ - highlight StatusLine guibg=#282c34 guifg=#abb2bf - highlight CmdLine guibg=#282c34 guifg=#abb2bf - ]] - end, -} - diff --git a/nvim/lua/kickstart/plugins/markdown-preview.lua b/nvim/lua/kickstart/plugins/markdown-preview.lua new file mode 100644 index 0000000..cf5d274 --- /dev/null +++ b/nvim/lua/kickstart/plugins/markdown-preview.lua @@ -0,0 +1,9 @@ +return { + 'iamcco/markdown-preview.nvim', + cmd = { 'MarkdownPreviewToggle', 'MarkdownPreview', 'MarkdownPreviewStop' }, + ft = { 'markdown' }, + build = function() + vim.fn['mkdp#util#install']() + end, +}, +