aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/provider/node
diff options
context:
space:
mode:
authordundargoc <gocdundar@gmail.com>2024-05-22 16:07:45 +0200
committerdundargoc <33953936+dundargoc@users.noreply.github.com>2024-05-22 20:15:17 +0200
commite8f7025de1d8b7c8bbe747736e4c46dcd6e73133 (patch)
tree6dba4440bc8bef6a9a205b08e5ebb18e518a420f /runtime/lua/vim/provider/node
parent339129ebc9503883a3f060d3eff620d67a9eadaf (diff)
downloadrneovim-e8f7025de1d8b7c8bbe747736e4c46dcd6e73133.tar.gz
rneovim-e8f7025de1d8b7c8bbe747736e4c46dcd6e73133.tar.bz2
rneovim-e8f7025de1d8b7c8bbe747736e4c46dcd6e73133.zip
docs: move vim.health documentation to lua.txt
`vim.health` is not a "plugin" but part of our Lua API and the documentation should reflect that. This also helps make the documentation maintenance easier as it is now generated.
Diffstat (limited to 'runtime/lua/vim/provider/node')
-rw-r--r--runtime/lua/vim/provider/node/health.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/runtime/lua/vim/provider/node/health.lua b/runtime/lua/vim/provider/node/health.lua
index 471c625388..b24a9e0061 100644
--- a/runtime/lua/vim/provider/node/health.lua
+++ b/runtime/lua/vim/provider/node/health.lua
@@ -6,7 +6,7 @@ local M = {}
function M.check()
health.start('Node.js provider (optional)')
- if health.provider_disabled('node') then
+ if health._provider_disabled('node') then
return
end
@@ -26,7 +26,7 @@ function M.check()
end
-- local node_v = vim.fn.split(system({'node', '-v'}), "\n")[1] or ''
- local ok, node_v = health.cmd_ok({ 'node', '-v' })
+ local ok, node_v = health._cmd_ok({ 'node', '-v' })
health.info('Node.js: ' .. node_v)
if not ok or vim.version.lt(node_v, '6.0.0') then
health.warn('Nvim node.js host does not support Node ' .. node_v)
@@ -63,7 +63,7 @@ function M.check()
iswin and 'cmd /c ' .. manager .. ' info neovim --json' or manager .. ' info neovim --json'
)
local latest_npm
- ok, latest_npm = health.cmd_ok(vim.split(latest_npm_cmd, ' '))
+ ok, latest_npm = health._cmd_ok(vim.split(latest_npm_cmd, ' '))
if not ok or latest_npm:find('^%s$') then
health.error(
'Failed to run: ' .. latest_npm_cmd,
@@ -81,7 +81,7 @@ function M.check()
local current_npm_cmd = { 'node', host, '--version' }
local current_npm
- ok, current_npm = health.cmd_ok(current_npm_cmd)
+ ok, current_npm = health._cmd_ok(current_npm_cmd)
if not ok then
health.error(
'Failed to run: ' .. table.concat(current_npm_cmd, ' '),