From a0a392935a9d4f9a5c2c2f6391d6a64861e6e1fa Mon Sep 17 00:00:00 2001 From: Leeto1970 <821522988@qq.com> Date: Tue, 16 Jul 2024 01:07:23 +0800 Subject: [PATCH] fix(health): when executing commands show "command not found" on Windows platform. --- lua/lazy/health.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/lazy/health.lua b/lua/lazy/health.lua index 9e2a869..9591c15 100644 --- a/lua/lazy/health.lua +++ b/lua/lazy/health.lua @@ -36,7 +36,7 @@ function M.have(cmd, opts) local found for _, c in ipairs(cmd) do if vim.fn.executable(c) == 1 then - local version = vim.fn.system(c .. " " .. opts.version) or "" + local version = vim.fn.system([["]] .. c .. " " .. opts.version .. [["]]) or "" if vim.v.shell_error ~= 0 then opts.error(("failed to get version of {%s}\n%s"):format(c, version)) else