nvim: Fix build of markdown-preview

For some versions apparently markdown preview could not be built anymore
with the suggested installation in the readme. Instead it requires the
build function to be called through a string from lazy.

See:
https://github.com/iamcco/markdown-preview.nvim/issues/690
This commit is contained in:
Marty Oehme 2025-06-19 22:09:27 +02:00
parent 688a001e01
commit c2bdda9acf
Signed by: Marty
GPG key ID: 4E535BC19C61886E

View file

@ -127,9 +127,7 @@ local prose_plugs = {
{
"iamcco/markdown-preview.nvim",
cond = vim.fn.executable("deno") == 0,
build = function()
vim.fn["mkdp#util#install"]()
end,
build = ":call mkdp#util#install()",
version = false,
ft = md_like,
cmd = { "MarkdownPreviewToggle", "MarkdownPreview", "MarkdownPreviewStop" },