Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add instructions for Sublime Text LSP #962

Merged
merged 3 commits into from
Sep 1, 2023
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions EDITORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,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-LSP)
- [Sublime Text LSP](#sublime-text-lsp)

## Emacs Eglot

Expand Down Expand Up @@ -78,3 +79,29 @@ require("lspconfig").ruby_ls.setup({
end,
})
```

## Sublime Text LSP

[LSP for Sublime Text](https://github.com/sublimelsp/LSP) includes setup instructions for [Solargraph](https://lsp.sublimetext.io/language_servers/#solargraph) and [Sorbet](https://lsp.sublimetext.io/language_servers/#sorbet)

To add ruby-lsp support, add the following configuration to your LSP client configuration:
erik-brueggemann marked this conversation as resolved.
Show resolved Hide resolved

```json
"clients": {
"ruby-lsp": {
"enabled": true,
"command": [
"ruby-lsp"
],
"selector": "source.ruby",
"initializationOptions": {
"enabledFeatures": {
"diagnostics": false
},
"experimentalFeaturesEnabled": true
}
}
}
```

Restart LSP or Sublime Text and `ruby-lsp` will automatically activate when opening ruby files.