Add markdown preview plugin
This commit is contained in:
parent
f1a0c48d98
commit
ca59b47f48
1 changed files with 11 additions and 0 deletions
11
lua/custom/plugins/markdown_preview.lua
Normal file
11
lua/custom/plugins/markdown_preview.lua
Normal 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" },
|
||||||
|
}
|
||||||
Loading…
Reference in a new issue