Skip to content

Commit

Permalink
Add instructions for Sublime Text LSP (#962)
Browse files Browse the repository at this point in the history
* Add instructions for Sublime Text LSP

* Update Sublime Text LSP instructions

* Update EDITORS.md

Co-authored-by: Vinicius Stock <vinistock@users.noreply.github.com>

---------

Co-authored-by: Vinicius Stock <vinistock@users.noreply.github.com>
  • Loading branch information
erik-brueggemann and vinistock authored Sep 1, 2023
1 parent b970b45 commit 7400dfd
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 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,27 @@ require("lspconfig").ruby_ls.setup({
end,
})
```

## 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:

```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.

0 comments on commit 7400dfd

Please sign in to comment.