default to ruby_lsp only if ruby 0.10

This commit is contained in:
Kevin Robayna 2024-07-18 22:59:38 +01:00
parent 9d974103c4
commit fca15abd3c

View file

@ -6,6 +6,10 @@ if lazyvim_docs then
end
local lsp = vim.g.lazyvim_ruby_lsp or "ruby_lsp"
if vim.fn.has("nvim-0.10") == 0 then
-- ruby_lsp does not work well with Neovim < 0.10
lsp = vim.g.lazyvim_ruby_lsp or "solarpath"
end
local formatter = vim.g.lazyvim_ruby_formatter or "rubocop"
return {