refactor: rewrite ruby provider in lua

This commit is contained in:
dundargoc
2024-01-22 22:07:14 +01:00
committed by dundargoc
parent ae3eed53d6
commit b280d57db9
6 changed files with 71 additions and 70 deletions

View File

@@ -20,7 +20,7 @@ function M.check()
end
health.info('Ruby: ' .. health.system({ 'ruby', '-v' }))
local ruby_detect_table = vim.fn['provider#ruby#Detect']()
local ruby_detect_table = require('vim.provider.ruby').detect()
local host = ruby_detect_table[1]
if host:find('^%s*$') then
health.warn('`neovim-ruby-host` not found.', {