Skip to content

Commit

Permalink
Add lazyvim to editors.md
Browse files Browse the repository at this point in the history
  • Loading branch information
KonnorRogers authored Jun 9, 2024
1 parent eaeaf4f commit 26c57fc
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_ls = {},
},
},
},
}
```

## 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 26c57fc

Please sign in to comment.