diff --git a/lua/custom/plugins/markdown_preview.lua b/lua/custom/plugins/markdown_preview.lua new file mode 100644 index 0000000..6f124b8 --- /dev/null +++ b/lua/custom/plugins/markdown_preview.lua @@ -0,0 +1,11 @@ +return { + "iamcco/markdown-preview.nvim", + cmd = { "MarkdownPreviewToggle", "MarkdownPreview", "MarkdownPreviewStop" }, + build = "cd app && npm install && git restore .", + -- or if you use yarn: (I have not checked this, I use npm) + -- build = "cd app && yarn install && git restore .", + init = function() + vim.g.mkdp_filetypes = { "markdown" } + end, + ft = { "markdown" }, +}