From 10f917351906ca2d3c61a6b9bd8b8ae88a26ed8f Mon Sep 17 00:00:00 2001 From: MoonFruit Date: Fri, 17 May 2024 18:25:28 +0800 Subject: [PATCH] fix(health): broken ruby detect #28804 --- runtime/lua/provider/ruby/health.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/runtime/lua/provider/ruby/health.lua b/runtime/lua/provider/ruby/health.lua index 4d859597a4..31c2fe3201 100644 --- a/runtime/lua/provider/ruby/health.lua +++ b/runtime/lua/provider/ruby/health.lua @@ -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.',