From b0ba11723246689912523dbdf4c974e3d6b70ef6 Mon Sep 17 00:00:00 2001 From: Michele Campeotto Date: Sat, 22 Mar 2025 12:05:09 +0100 Subject: [PATCH] Add instructions to use fennel-ls with Helix. --- docs/installation.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/docs/installation.md b/docs/installation.md index 869db8e..0e197e1 100644 --- a/docs/installation.md +++ b/docs/installation.md @@ -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)