2024-01-02 16:41:51 -03:00
|
|
|
return {
|
|
|
|
"iamcco/markdown-preview.nvim",
|
|
|
|
cmd = { "MarkdownPreviewToggle", "MarkdownPreview", "MarkdownPreviewStop" },
|
|
|
|
ft = { "markdown" },
|
2024-09-18 14:11:30 -03:00
|
|
|
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,
|
2024-01-02 16:41:51 -03:00
|
|
|
}
|