Add instructions to use fennel-ls with Helix.
This commit is contained in:
parent
7345d1bcd6
commit
b0ba117232
@ -93,6 +93,28 @@ If you run into problems, check the [LSP Client Configuration
|
|||||||
reference](https://lsp.sublimetext.io/client_configuration/) and double-check
|
reference](https://lsp.sublimetext.io/client_configuration/) and double-check
|
||||||
the location of fennel-ls on the $PATH is visible to Sublime Text.
|
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
|
### Visual Studio Code
|
||||||
|
|
||||||
You need to [install an extension](https://codeberg.org/adjuvant/vscode-fennel-ls)
|
You need to [install an extension](https://codeberg.org/adjuvant/vscode-fennel-ls)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user