use which instead of command for better compatibility

This commit is contained in:
RingOfStorms (Joshua Bell) 2023-05-03 18:29:05 -05:00
parent eddbdaf03e
commit a37e987c2b

View file

@ -1,8 +1,7 @@
-- npm install -g cspell@latest -- npm install -g cspell@latest
local output = vim.fn.system { local output = vim.fn.system {
"command", "which",
"-v",
"cspell", "cspell",
} }
if output == nil or output == "" then if output == nil or output == "" then