From 2c810036ffe79e4205ea92ea228e52da344a1808 Mon Sep 17 00:00:00 2001 From: Baipyrus Date: Sat, 30 Mar 2024 16:23:36 +0100 Subject: [PATCH] isolate markdown plugin to customs --- lua/custom/plugins/markdown.lua | 10 ++++++++++ lua/lazy-plugins.lua | 11 ----------- 2 files changed, 10 insertions(+), 11 deletions(-) create mode 100644 lua/custom/plugins/markdown.lua 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',