From eef9017a19822b3d529158bb02ccd5ea078e801a Mon Sep 17 00:00:00 2001 From: Antti Eskelinen Date: Fri, 20 Jun 2025 09:45:38 +0300 Subject: [PATCH 1/3] Add documentation for Helix editor --- scripts/helix.md | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 scripts/helix.md diff --git a/scripts/helix.md b/scripts/helix.md new file mode 100644 index 0000000..fabad25 --- /dev/null +++ b/scripts/helix.md @@ -0,0 +1,28 @@ +# helix setup + +## stdio way + +1. Ensure `kotlin-lsp.sh` is executable + + ```sh + chmod +x $KOTLIN_LSP_DIR/kotlin-lsp.sh + ``` + +2. Create a symlink inside your `PATH` to `kotlin-lsp.sh` script, e.g.: + + ```sh + ln -s $KOTLIN_LSP_DIR/kotlin-lsp.sh $HOME/.local/bin/kotlin-ls + ``` + +3. Configure [languages.toml](https://docs.helix-editor.com/languages.html) e.g: + + ```toml + [language-server.kotlin] + command = "kotlin-ls" + args = ["--stdio"] + + [[language]] + name = "kotlin" + language-servers = [ "kotlin" ] + ``` + From 8f8a3eef7d987b7ef80fc290179d405f9bd74666 Mon Sep 17 00:00:00 2001 From: Antti Eskelinen Date: Sat, 21 Jun 2025 08:40:55 +0300 Subject: [PATCH 2/3] Clarify instructions --- scripts/helix.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/scripts/helix.md b/scripts/helix.md index fabad25..52d085b 100644 --- a/scripts/helix.md +++ b/scripts/helix.md @@ -2,19 +2,21 @@ ## stdio way -1. Ensure `kotlin-lsp.sh` is executable +1. Download the standalone zip from the [Releases Page](https://github.com/Kotlin/kotlin-lsp/releases) + +2. Ensure `kotlin-lsp.sh` is executable ```sh chmod +x $KOTLIN_LSP_DIR/kotlin-lsp.sh ``` -2. Create a symlink inside your `PATH` to `kotlin-lsp.sh` script, e.g.: +3. Create a symlink inside your `PATH` to `kotlin-lsp.sh` script, e.g.: ```sh ln -s $KOTLIN_LSP_DIR/kotlin-lsp.sh $HOME/.local/bin/kotlin-ls ``` -3. Configure [languages.toml](https://docs.helix-editor.com/languages.html) e.g: +4. Add the below configuration to your [languages.toml](https://docs.helix-editor.com/languages.html) in `~/.config/helix/languages.toml`: ```toml [language-server.kotlin] From 47f70d33a093b91244ebb82fdceb0866d87d6304 Mon Sep 17 00:00:00 2001 From: Antti Eskelinen Date: Sat, 21 Jun 2025 08:42:43 +0300 Subject: [PATCH 3/3] Fix copied typo --- scripts/helix.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/helix.md b/scripts/helix.md index 52d085b..e7a03b4 100644 --- a/scripts/helix.md +++ b/scripts/helix.md @@ -13,14 +13,14 @@ 3. Create a symlink inside your `PATH` to `kotlin-lsp.sh` script, e.g.: ```sh - ln -s $KOTLIN_LSP_DIR/kotlin-lsp.sh $HOME/.local/bin/kotlin-ls + ln -s $KOTLIN_LSP_DIR/kotlin-lsp.sh $HOME/.local/bin/kotlin-lsp ``` 4. Add the below configuration to your [languages.toml](https://docs.helix-editor.com/languages.html) in `~/.config/helix/languages.toml`: ```toml [language-server.kotlin] - command = "kotlin-ls" + command = "kotlin-lsp" args = ["--stdio"] [[language]]