aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/provider/ruby/health.lua
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2024-01-29 09:43:49 -0800
committerGitHub <noreply@github.com>2024-01-29 09:43:49 -0800
commita060c13f55b775b2fafc741a571bb764e804d9db (patch)
treeff2d9478a9a4f0284ddcf98fbc037be3cbb4fe19 /runtime/lua/provider/ruby/health.lua
parent758504ec739b70c4e2f192feb106f101024bc862 (diff)
parente39b6d0c52410b59ad75312659ab278da42e42c6 (diff)
downloadrneovim-a060c13f55b775b2fafc741a571bb764e804d9db.tar.gz
rneovim-a060c13f55b775b2fafc741a571bb764e804d9db.tar.bz2
rneovim-a060c13f55b775b2fafc741a571bb764e804d9db.zip
Merge #27246 from justinmk/health
Diffstat (limited to 'runtime/lua/provider/ruby/health.lua')
-rw-r--r--runtime/lua/provider/ruby/health.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/lua/provider/ruby/health.lua b/runtime/lua/provider/ruby/health.lua
index b102cbe535..d43d7cf9b3 100644
--- a/runtime/lua/provider/ruby/health.lua
+++ b/runtime/lua/provider/ruby/health.lua
@@ -22,7 +22,7 @@ function M.check()
local ruby_detect_table = require('vim.provider.ruby').detect()
local host = ruby_detect_table[1]
- if host:find('^%s*$') then
+ 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.',
'Run `gem environment` to ensure the gem bin directory is in $PATH.',