From ca59b47f489c04f8154a4d6f036241678bf6145f Mon Sep 17 00:00:00 2001 From: t0xa Date: Thu, 5 Mar 2026 20:39:30 +0300 Subject: [PATCH] Add markdown preview plugin --- lua/custom/plugins/markdown_preview.lua | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 lua/custom/plugins/markdown_preview.lua 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" }, +}