Skip to content

Commit 06104c5

Browse files
committed
fix failing markdown until #732 merged
iamcco/markdown-preview.nvim#732
1 parent c4e3c1a commit 06104c5

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

nvim/lua/plugins.lua

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,9 +114,10 @@ return {
114114
{
115115
"iamcco/markdown-preview.nvim",
116116
cmd = { "MarkdownPreviewToggle", "MarkdownPreview", "MarkdownPreviewStop" },
117-
ft = { "markdown" },
118-
build = function()
119-
vim.fn["mkdp#util#install"]()
117+
build = "cd app && npm install && git restore .",
118+
ft = { "markdown", "md" },
119+
init = function()
120+
vim.g.mkdp_filetypes = { "markdown", "md" }
120121
end,
121122
},
122123

0 commit comments

Comments
 (0)