summaryrefslogtreecommitdiff
path: root/mac/.config
diff options
context:
space:
mode:
Diffstat (limited to 'mac/.config')
-rw-r--r--mac/.config/TheSiahxyz/lua/TheSiahxyz/plugins/markdown.lua10
1 files changed, 5 insertions, 5 deletions
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")