mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
fix(checkhealth): error in node.js check #28348
Problem: :checkhealth node.js check fails: ERROR Failed to run healthcheck for "provider.node" plugin ... node/health.lua:98: attempt to call local 'message' (a string value) `message` is called as a function, when it is actually a string. Solution: Pass `message` to `warn()` as an argument. Fix #28346
This commit is contained in:
parent
533e01a75b
commit
603f3b36a4
@ -92,14 +92,15 @@ function M.check()
|
|||||||
|
|
||||||
if latest_npm ~= 'unable to parse' and vim.version.lt(current_npm, latest_npm) then
|
if latest_npm ~= 'unable to parse' and vim.version.lt(current_npm, latest_npm) then
|
||||||
local message = 'Package "neovim" is out-of-date. Installed: '
|
local message = 'Package "neovim" is out-of-date. Installed: '
|
||||||
.. current_npm
|
.. current_npm:gsub('%\n$', '')
|
||||||
.. ' latest: '
|
.. ', latest: '
|
||||||
.. latest_npm
|
.. latest_npm:gsub('%\n$', '')
|
||||||
health.warn(message({
|
|
||||||
|
health.warn(message, {
|
||||||
'Run in shell: npm install -g neovim',
|
'Run in shell: npm install -g neovim',
|
||||||
'Run in shell (if you use yarn): yarn global add neovim',
|
'Run in shell (if you use yarn): yarn global add neovim',
|
||||||
'Run in shell (if you use pnpm): pnpm install -g neovim',
|
'Run in shell (if you use pnpm): pnpm install -g neovim',
|
||||||
}))
|
})
|
||||||
else
|
else
|
||||||
health.ok('Latest "neovim" npm/yarn/pnpm package is installed: ' .. current_npm)
|
health.ok('Latest "neovim" npm/yarn/pnpm package is installed: ' .. current_npm)
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user