mirror of
https://github.com/DefectingCat/nvim
synced 2025-07-15 16:51:33 +00:00
fix markdown preview
This commit is contained in:
@ -466,8 +466,19 @@ local plugins = {
|
||||
"iamcco/markdown-preview.nvim",
|
||||
cmd = { "MarkdownPreviewToggle", "MarkdownPreview", "MarkdownPreviewStop" },
|
||||
ft = { "markdown" },
|
||||
build = function()
|
||||
vim.fn["mkdp#util#install"]()
|
||||
--[[ build = function() ]]
|
||||
--[[ vim.fn["mkdp#util#install"]() ]]
|
||||
--[[ end, ]]
|
||||
build = function(plugin)
|
||||
if vim.fn.executable "npx" then
|
||||
vim.cmd("!cd " .. plugin.dir .. " && cd app && npx --yes yarn install")
|
||||
else
|
||||
vim.cmd [[Lazy load markdown-preview.nvim]]
|
||||
vim.fn["mkdp#util#install"]()
|
||||
end
|
||||
end,
|
||||
init = function()
|
||||
if vim.fn.executable "npx" then vim.g.mkdp_filetypes = { "markdown" } end
|
||||
end,
|
||||
},
|
||||
-- git
|
||||
|
Reference in New Issue
Block a user