diff --git a/lua/custom/plugins/markdown.lua b/lua/custom/plugins/markdown.lua new file mode 100644 index 0000000..53baa36 --- /dev/null +++ b/lua/custom/plugins/markdown.lua @@ -0,0 +1,10 @@ +-- Markdown preview plugin +return { + 'iamcco/markdown-preview.nvim', + cmd = { 'MarkdownPreviewToggle', 'MarkdownPreview', 'MarkdownPreviewStop' }, + build = 'cd app; npm install', + init = function() + vim.g.mkdp_filetypes = { 'markdown' } + end, + ft = { 'markdown' }, +} diff --git a/lua/lazy-plugins.lua b/lua/lazy-plugins.lua index 0c7c36c..7b0edcc 100644 --- a/lua/lazy-plugins.lua +++ b/lua/lazy-plugins.lua @@ -22,17 +22,6 @@ require('lazy').setup({ -- Processing-Java 'sophacles/vim-processing', - -- Markdown preview plugin - { - 'iamcco/markdown-preview.nvim', - cmd = { 'MarkdownPreviewToggle', 'MarkdownPreview', 'MarkdownPreviewStop' }, - build = 'cd app; npm install', - init = function() - vim.g.mkdp_filetypes = { 'markdown' } - end, - ft = { 'markdown' }, - }, - -- Smooth scroll plugin and keymaps { 'karb94/neoscroll.nvim',