diff options
-rw-r--r-- | runtime/lua/provider/node/health.lua | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/runtime/lua/provider/node/health.lua b/runtime/lua/provider/node/health.lua index b4dca2f482..471c625388 100644 --- a/runtime/lua/provider/node/health.lua +++ b/runtime/lua/provider/node/health.lua @@ -92,14 +92,15 @@ function M.check() if latest_npm ~= 'unable to parse' and vim.version.lt(current_npm, latest_npm) then local message = 'Package "neovim" is out-of-date. Installed: ' - .. current_npm - .. ' latest: ' - .. latest_npm - health.warn(message({ + .. current_npm:gsub('%\n$', '') + .. ', latest: ' + .. latest_npm:gsub('%\n$', '') + + health.warn(message, { 'Run in shell: npm install -g neovim', 'Run in shell (if you use yarn): yarn global add neovim', 'Run in shell (if you use pnpm): pnpm install -g neovim', - })) + }) else health.ok('Latest "neovim" npm/yarn/pnpm package is installed: ' .. current_npm) end |