Skip to content

Commit 240d7ed

Browse files
authored
Add some more detail for LazyVim config (#2399)
1 parent 5d9e12c commit 240d7ed

File tree

1 file changed

+19
-2
lines changed

1 file changed

+19
-2
lines changed

EDITORS.md

+19-2
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,25 @@ require("lspconfig").ruby_lsp.setup({
142142

143143
## LazyVim LSP
144144

145-
[As of v12.33.0](https://github.com/LazyVim/LazyVim/pull/3652), Ruby LSP is the default LSP for Ruby and no configuration should be needed, other
146-
than ensuring your Ruby version manager is set up as described above.
145+
[As of v12.33.0](https://github.com/LazyVim/LazyVim/pull/3652), Ruby LSP is the default LSP for Ruby.
146+
147+
To ensure the correct Ruby version is selected, we recommend disabling the `mason` option and specifying the
148+
appropriate command for your Ruby version manager as an absolute path. For example:
149+
150+
```lua
151+
return {
152+
{
153+
"neovim/nvim-lspconfig",
154+
servers = {
155+
ruby_lsp = {
156+
mason = false,
157+
cmd = { "/Users/username/.asdf/shims/ruby-lsp" },
158+
},
159+
},
160+
},
161+
},
162+
}
163+
```
147164

148165
## Sublime Text LSP
149166

0 commit comments

Comments
 (0)