From f794510a75db25cb85324697eb27d5f58d99ee8f Mon Sep 17 00:00:00 2001 From: command-z-z <272181284@qq.com> Date: Sat, 14 Dec 2024 23:31:17 +0800 Subject: [PATCH] fix: markdown plugin can't install - about issue https://github.com/iamcco/markdown-preview.nvim/issues/690 to resolve this install problem. --- lua/plugins.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lua/plugins.lua b/lua/plugins.lua index ce39827..08597df 100644 --- a/lua/plugins.lua +++ b/lua/plugins.lua @@ -52,7 +52,9 @@ return require("lazy").setup( --markdown preview { "iamcco/markdown-preview.nvim", - build = function() vim.fn["mkdp#util#install"]() end, + cmd = { "MarkdownPreviewToggle", "MarkdownPreview", "MarkdownPreviewStop" }, + ft = { "markdown" }, + build = ":call mkdp#util#install()", }, --lsp {