From 2967a27f7370d62f108d3f385bed2f05718c1b2d Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Tue, 17 Oct 2023 16:25:31 -0500 Subject: [PATCH] refactor(nvim): use builtin markdown-preview function to build --- dots/.config/nvim/lua/plugins/configs/markdown.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dots/.config/nvim/lua/plugins/configs/markdown.lua b/dots/.config/nvim/lua/plugins/configs/markdown.lua index 564d20c3..9f79c736 100644 --- a/dots/.config/nvim/lua/plugins/configs/markdown.lua +++ b/dots/.config/nvim/lua/plugins/configs/markdown.lua @@ -1,7 +1,8 @@ return { { "iamcco/markdown-preview.nvim", - build = "cd app && npm install", + cmd = { "MarkdownPreviewToggle", "MarkdownPreview", "MarkdownPreviewStop" }, ft = { "markdown" }, - }, + build = function() vim.fn["mkdp#util#install"]() end, + } }