Skip to content

Commit e0cd815

Browse files
committed
Show how to integrate with helix
1 parent 8c40b4f commit e0cd815

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

EDITORS.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,29 @@ require'lspconfig'.kotlin_language_server.setup{
8484
## Monaco Editor
8585
See [kotlin-monaco-language-server](https://github.com/yahorbarkouski/kotlin-monaco-language-server).
8686

87+
## Helix
88+
89+
Using [languages.toml](https://github.com/helix-editor/helix/blob/master/book/src/languages.md)
90+
91+
```toml
92+
[language-server.kotlin-language-server]
93+
command = "kotlin-language-server"
94+
95+
[[language]]
96+
name = "kotlin"
97+
scope = "source.kotlin"
98+
file-types = ["kt", "kts"]
99+
roots = ["settings.gradle", "settings.gradle.kts"]
100+
comment-token = "//"
101+
block-comment-tokens = { start = "/*", end = "*/" }
102+
indent = { tab-width = 4, unit = " " }
103+
language-servers = [ "kotlin-language-server" ]
104+
105+
[[grammar]]
106+
name = "kotlin"
107+
source = { git = "https://github.com/fwcd/tree-sitter-kotlin", rev = "a4f71eb9b8c9b19ded3e0e9470be4b1b77c2b569" }
108+
```
109+
87110
## Other Editors
88111
Install a [Language Server Protocol client](https://microsoft.github.io/language-server-protocol/implementors/tools/) for your tool. Then invoke the language server executable in a client-specific way.
89112

0 commit comments

Comments
 (0)