diff options
author | MoonFruit <dkmoonfruit@gmail.com> | 2024-05-17 18:25:28 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-17 03:25:28 -0700 |
commit | 10f917351906ca2d3c61a6b9bd8b8ae88a26ed8f (patch) | |
tree | e4f1a4c84dfea395ea6f9f70ec47aaea70aee071 | |
parent | 878dcf19807ad880fadac200b65619e237492460 (diff) | |
download | rneovim-10f917351906ca2d3c61a6b9bd8b8ae88a26ed8f.tar.gz rneovim-10f917351906ca2d3c61a6b9bd8b8ae88a26ed8f.tar.bz2 rneovim-10f917351906ca2d3c61a6b9bd8b8ae88a26ed8f.zip |
fix(health): broken ruby detect #28804
-rw-r--r-- | runtime/lua/provider/ruby/health.lua | 3 |
1 files changed, 1 insertions, 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.', |