From fca15abd3c9a4d38b40e107f5655349c4a93e06b Mon Sep 17 00:00:00 2001 From: Kevin Robayna Date: Thu, 18 Jul 2024 22:59:38 +0100 Subject: [PATCH] default to ruby_lsp only if ruby 0.10 --- lua/lazyvim/plugins/extras/lang/ruby.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lua/lazyvim/plugins/extras/lang/ruby.lua b/lua/lazyvim/plugins/extras/lang/ruby.lua index 83fdd28e..344697b2 100644 --- a/lua/lazyvim/plugins/extras/lang/ruby.lua +++ b/lua/lazyvim/plugins/extras/lang/ruby.lua @@ -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 {