From e8f7025de1d8b7c8bbe747736e4c46dcd6e73133 Mon Sep 17 00:00:00 2001 From: dundargoc Date: Wed, 22 May 2024 16:07:45 +0200 Subject: 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. --- runtime/lua/vim/provider/ruby/health.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'runtime/lua/vim/provider/ruby') diff --git a/runtime/lua/vim/provider/ruby/health.lua b/runtime/lua/vim/provider/ruby/health.lua index 31c2fe3201..80932e1bb0 100644 --- a/runtime/lua/vim/provider/ruby/health.lua +++ b/runtime/lua/vim/provider/ruby/health.lua @@ -6,7 +6,7 @@ local M = {} function M.check() health.start('Ruby provider (optional)') - if health.provider_disabled('ruby') then + if health._provider_disabled('ruby') then return end @@ -17,7 +17,7 @@ function M.check() ) return end - health.info('Ruby: ' .. health.system({ 'ruby', '-v' })) + health.info('Ruby: ' .. health._system({ 'ruby', '-v' })) local host, _ = vim.provider.ruby.detect() if (not host) or host:find('^%s*$') then @@ -33,7 +33,7 @@ function M.check() health.info('Host: ' .. host) local latest_gem_cmd = (iswin and 'cmd /c gem list -ra "^^neovim$"' or 'gem list -ra ^neovim$') - local ok, latest_gem = health.cmd_ok(vim.split(latest_gem_cmd, ' ')) + local ok, latest_gem = health._cmd_ok(vim.split(latest_gem_cmd, ' ')) if not ok or latest_gem:find('^%s*$') then health.error( 'Failed to run: ' .. latest_gem_cmd, @@ -46,7 +46,7 @@ function M.check() local current_gem_cmd = { host, '--version' } local current_gem - ok, current_gem = health.cmd_ok(current_gem_cmd) + ok, current_gem = health._cmd_ok(current_gem_cmd) if not ok then health.error( 'Failed to run: ' .. table.concat(current_gem_cmd, ' '), -- cgit