Add markdown preview plugin

This commit is contained in:
t0xa 2026-03-05 20:39:30 +03:00
parent f1a0c48d98
commit ca59b47f48

View file

@ -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" },
}