mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-07-25 14:01:06 +00:00
feat(extras): improve ruby extra by using RubyLsp
Shopify started working on its own LSP (https://github.com/Shopify/ruby-lsp) and it performs way better than Solargraph which has a lot of limitations. This paired with sorbet gives better IntelliSense when navigating the code. One caveat though is that RubyLsp does not work very well with NeoVim < 0.10 https://github.com/Shopify/ruby-lsp/blob/main/EDITORS.md#neovim
This commit is contained in:
parent
3e29fdf478
commit
4cd5c4162a
1 changed files with 8 additions and 1 deletions
|
|
@ -11,9 +11,16 @@ return {
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"neovim/nvim-lspconfig",
|
"neovim/nvim-lspconfig",
|
||||||
|
---@class PluginLspOpts
|
||||||
opts = {
|
opts = {
|
||||||
|
---@type lspconfig.options
|
||||||
servers = {
|
servers = {
|
||||||
solargraph = {},
|
-- disable solargraph from auto running when you open ruby files
|
||||||
|
solargraph = {
|
||||||
|
autostart = false,
|
||||||
|
},
|
||||||
|
-- ruby_lsp will be automatically installed with mason and loaded with lspconfig
|
||||||
|
ruby_lsp = {},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue