mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-07-25 14:01:06 +00:00
default to ruby_lsp only if ruby 0.10
This commit is contained in:
parent
9d974103c4
commit
fca15abd3c
1 changed files with 4 additions and 0 deletions
|
|
@ -6,6 +6,10 @@ if lazyvim_docs then
|
||||||
end
|
end
|
||||||
|
|
||||||
local lsp = vim.g.lazyvim_ruby_lsp or "ruby_lsp"
|
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"
|
local formatter = vim.g.lazyvim_ruby_formatter or "rubocop"
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue