Skip to content

Commit

Permalink
Add lazyvim to editors.md (#2150)
Browse files Browse the repository at this point in the history
* Add lazyvim to editors.md

* Update EDITORS.md

Co-authored-by: Vinicius Stock <[email protected]>

---------

Co-authored-by: Vinicius Stock <[email protected]>
  • Loading branch information
KonnorRogers and vinistock authored Jun 10, 2024
1 parent abfad7a commit f0e1fb7
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions EDITORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ new H2 header in this file containing the instructions. -->
- [Emacs LSP Mode](https://emacs-lsp.github.io/lsp-mode/page/lsp-ruby-lsp/)
- [Emacs Eglot](#Emacs-Eglot)
- [Neovim LSP](#Neovim)
- [LazyVim LSP](#lazyvim-lsp)
- [Sublime Text LSP](#sublime-text-lsp)
- [Zed](#zed)
- [RubyMine](#RubyMine)
Expand Down Expand Up @@ -109,6 +110,32 @@ require("lspconfig").ruby_lsp.setup({
})
```

## LazyVim LSP

For LazyVim, you can add the ruby-lsp by creating a file in your plugins folder (`~/.config/nvim/plugins/ruby_lsp.lua`) and adding the following:

```lua
-- ~/.config/nvim/plugins/ruby_lsp.lua

return {
{
"neovim/nvim-lspconfig",
---@class PluginLspOpts
opts = {
---@type lspconfig.options
servers = {
-- 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 = {},
},
},
},
}
```

## Sublime Text LSP

To configure the Ruby LSP using [LSP for Sublime Text](https://github.com/sublimelsp/LSP), add the following configuration to your LSP client configuration:
Expand Down

0 comments on commit f0e1fb7

Please sign in to comment.