Merge pull request #28814 from neovim/backport-28804-to-release-0.10

fix(health): incorrect checkhealth of ruby
This commit is contained in:
zeertzjq 2024-05-18 05:44:16 +08:00 committed by GitHub
commit 81560bbdbf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -19,8 +19,7 @@ function M.check()
end
health.info('Ruby: ' .. health.system({ 'ruby', '-v' }))
local ruby_detect_table = vim.provider.ruby.detect()
local host = ruby_detect_table[1]
local host, _ = vim.provider.ruby.detect()
if (not host) or host:find('^%s*$') then
health.warn('`neovim-ruby-host` not found.', {
'Run `gem install neovim` to ensure the neovim RubyGem is installed.',