aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/provider/ruby/health.lua
diff options
context:
space:
mode:
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.',