Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions scripts/helix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# helix setup

## stdio way

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
```

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-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-lsp"
args = ["--stdio"]

[[language]]
name = "kotlin"
language-servers = [ "kotlin" ]
```