Add instructions to use fennel-ls with Helix.

This commit is contained in:
Michele Campeotto 2025-03-22 12:05:09 +01:00 committed by Phil Hagelberg
parent 7345d1bcd6
commit b0ba117232

View File

@ -93,6 +93,28 @@ If you run into problems, check the [LSP Client Configuration
reference](https://lsp.sublimetext.io/client_configuration/) and double-check
the location of fennel-ls on the $PATH is visible to Sublime Text.
### Helix
Make sure `fennel_ls` is available in your `$PATH` and then add this to your
`~/.config/helix/languages.toml` file:
```toml
[language-server.fennel-ls]
command = "fennel-ls"
[[language]]
name = "fennel"
scope = "source.fennel"
file-types = ["fnl"]
language-servers = ["fennel-ls"]
```
If you have `fnlfmt` you can also add this to the `[[language]]` section:
```toml
formatter = { command = "fnlfmt", args = ["-"]}
```
### Visual Studio Code
You need to [install an extension](https://codeberg.org/adjuvant/vscode-fennel-ls)