Skip to content

Commit f1e9ffe

Browse files
authored
Add helix instructions to editors list (#3107)
* Add helix instructions to editors * Update copy
1 parent eac6f3c commit f1e9ffe

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

jekyll/editors.markdown

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ new H2 header in this file containing the instructions. -->
104104
- [Zed](#zed)
105105
- [RubyMine](#rubymine)
106106
- [Kate](#kate)
107+
- [Helix](#helix)
107108

108109
## Emacs Eglot
109110

@@ -304,5 +305,22 @@ Kate will start an instance of the Ruby LSP server in the background for any Rub
304305
If starting Ruby LSP succeeds, the entries in the LSP-Client menu are activated.
305306
Otherwise the error output can be inspected in the Output window.
306307

308+
## Helix
309+
310+
To configure the Ruby LSP in Helix you first need to define it as a language server and then set it as the main language server for Ruby.
311+
This will also set ruby-lsp to be used as a formatter with its built-in rubocop integration.
312+
313+
```toml
314+
# languages.toml
315+
316+
[language-server.ruby-lsp]
317+
command = "ruby-lsp"
318+
config = { diagnostics = true, formatting = true }
319+
320+
[[language]]
321+
name = "ruby"
322+
language-servers = ["ruby-lsp"]
323+
auto-format = true
324+
```
307325

308326
[mason-abi]: https://github.com/williamboman/mason.nvim/issues/1292

0 commit comments

Comments
 (0)