diff options
| author | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2025-11-19 23:50:08 +0900 |
|---|---|---|
| committer | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2025-11-19 23:50:08 +0900 |
| commit | 234fa09e9c36677102ec6b10b713d432ee16be53 (patch) | |
| tree | a69f3fe399651256e5e7721732da659c898bfa68 /ar/.config | |
| parent | 77107c3d6bba970add4a756dc9fd430637c5c235 (diff) | |
modified plugins/markdown.lua, modified bin/fzffiles, modified plugins/markdown.lua, modified bin/fzffiles
Diffstat (limited to 'ar/.config')
| -rw-r--r-- | ar/.config/TheSiahxyz/lua/TheSiahxyz/plugins/markdown.lua | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ar/.config/TheSiahxyz/lua/TheSiahxyz/plugins/markdown.lua b/ar/.config/TheSiahxyz/lua/TheSiahxyz/plugins/markdown.lua index de16ca6..a47db5a 100644 --- a/ar/.config/TheSiahxyz/lua/TheSiahxyz/plugins/markdown.lua +++ b/ar/.config/TheSiahxyz/lua/TheSiahxyz/plugins/markdown.lua @@ -220,20 +220,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") @@ -258,7 +258,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") |
