diff options
author | dundargoc <gocdundar@gmail.com> | 2024-05-22 16:07:45 +0200 |
---|---|---|
committer | dundargoc <33953936+dundargoc@users.noreply.github.com> | 2024-05-22 20:15:17 +0200 |
commit | e8f7025de1d8b7c8bbe747736e4c46dcd6e73133 (patch) | |
tree | 6dba4440bc8bef6a9a205b08e5ebb18e518a420f /runtime/lua/vim/provider/ruby | |
parent | 339129ebc9503883a3f060d3eff620d67a9eadaf (diff) | |
download | rneovim-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/ruby')
-rw-r--r-- | runtime/lua/vim/provider/ruby/health.lua | 8 |
1 files changed, 4 insertions, 4 deletions
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, ' '), |