From 234fa09e9c36677102ec6b10b713d432ee16be53 Mon Sep 17 00:00:00 2001 From: TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> Date: Wed, 19 Nov 2025 23:50:08 +0900 Subject: modified plugins/markdown.lua, modified bin/fzffiles, modified plugins/markdown.lua, modified bin/fzffiles --- mac/.config/TheSiahxyz/lua/TheSiahxyz/plugins/markdown.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'mac/.config/TheSiahxyz/lua') diff --git a/mac/.config/TheSiahxyz/lua/TheSiahxyz/plugins/markdown.lua b/mac/.config/TheSiahxyz/lua/TheSiahxyz/plugins/markdown.lua index 0b01741..81beebb 100644 --- a/mac/.config/TheSiahxyz/lua/TheSiahxyz/plugins/markdown.lua +++ b/mac/.config/TheSiahxyz/lua/TheSiahxyz/plugins/markdown.lua @@ -207,20 +207,20 @@ return { end, }, { - -- Install markdown preview, use npx if available. + -- Install markdown preview, use npm if available. "iamcco/markdown-preview.nvim", cmd = { "MarkdownPreviewToggle", "MarkdownPreview", "MarkdownPreviewStop" }, ft = { "markdown" }, build = function(plugin) - if vim.fn.executable("npx") then - vim.cmd("!cd " .. plugin.dir .. " && cd app && npx install") + if vim.fn.executable("npm") then + vim.cmd("!cd " .. plugin.dir .. " && cd app && npm install") else vim.cmd([[Lazy load markdown-preview.nvim]]) vim.fn["mkdp#util#install"]() end end, init = function() - if vim.fn.executable("npx") then + if vim.fn.executable("npm") then vim.g.mkdp_filetypes = { "markdown" } end local wk = require("which-key") @@ -245,7 +245,7 @@ return { }, cmd = { "LivePreview start", "LivePreview close", "LivePreview pick", "LivePreview help" }, init = function() - if vim.fn.executable("npx") then + if vim.fn.executable("npm") then vim.g.mkdp_filetypes = { "markdown" } end local wk = require("which-key") -- cgit v1.2.3