Skip to content

Commit eef9017

Browse files
Add documentation for Helix editor
1 parent 466618a commit eef9017

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

scripts/helix.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# helix setup
2+
3+
## stdio way
4+
5+
1. Ensure `kotlin-lsp.sh` is executable
6+
7+
```sh
8+
chmod +x $KOTLIN_LSP_DIR/kotlin-lsp.sh
9+
```
10+
11+
2. Create a symlink inside your `PATH` to `kotlin-lsp.sh` script, e.g.:
12+
13+
```sh
14+
ln -s $KOTLIN_LSP_DIR/kotlin-lsp.sh $HOME/.local/bin/kotlin-ls
15+
```
16+
17+
3. Configure [languages.toml](https://docs.helix-editor.com/languages.html) e.g:
18+
19+
```toml
20+
[language-server.kotlin]
21+
command = "kotlin-ls"
22+
args = ["--stdio"]
23+
24+
[[language]]
25+
name = "kotlin"
26+
language-servers = [ "kotlin" ]
27+
```
28+

0 commit comments

Comments
 (0)