aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2026-03-05 07:51:24 +0800
committerGitHub <noreply@github.com>2026-03-05 07:51:24 +0800
commit16fbde83c46ffdaf144404cd0082ec4f2e92777f (patch)
treed87d7bffb7e18f06a093265c4ee1f5a2d68d7ab3 /runtime/lua/vim
parent6beb1fe0cd686cd0fe8a2a5f72704f7d1bbd252c (diff)
downloadrneovim-16fbde83c46ffdaf144404cd0082ec4f2e92777f.tar.gz
rneovim-16fbde83c46ffdaf144404cd0082ec4f2e92777f.tar.bz2
rneovim-16fbde83c46ffdaf144404cd0082ec4f2e92777f.zip
fix(checkhealth): don't wrap command in cmd.exe (#38158)
This was introduced in #6608 and is unnecessary since #9516 and #31109.
Diffstat (limited to 'runtime/lua/vim')
-rw-r--r--runtime/lua/vim/provider/health.lua10
1 files changed, 2 insertions, 8 deletions
diff --git a/runtime/lua/vim/provider/health.lua b/runtime/lua/vim/provider/health.lua
index bdf67212b0..00f3aba45c 100644
--- a/runtime/lua/vim/provider/health.lua
+++ b/runtime/lua/vim/provider/health.lua
@@ -216,10 +216,7 @@ local function node()
manager = 'pnpm'
end
- local latest_npm_cmd = (
- iswin and { 'cmd', '/c', manager, 'info', 'neovim', '--json' }
- or { manager, 'info', 'neovim', '--json' }
- )
+ local latest_npm_cmd = { manager, 'info', 'neovim', '--json' }
local latest_npm
ok, latest_npm = cmd_ok(latest_npm_cmd)
if not ok or latest_npm:find('^%s$') then
@@ -904,10 +901,7 @@ local function ruby()
end
health.info('Host: ' .. host)
- local latest_gem_cmd = (
- iswin and { 'cmd', '/c', 'gem', 'list', '-ra', '"^^neovim$"' }
- or { 'gem', 'list', '-ra', '^neovim$' }
- )
+ local latest_gem_cmd = { 'gem', 'list', '-ra', '^neovim$' }
local ok, latest_gem = cmd_ok(latest_gem_cmd)
if not ok or latest_gem:find('^%s*$') then
health.error(