
Co-authored-by: Raunak Raj <nkray21111983@gmail.com> Co-authored-by: Thorsten Ball <mrnugget@gmail.com> Co-authored-by: Bennet <bennet@zed.dev> Co-authored-by: Marshall Bowers <elliott.codes@gmail.com> Co-authored-by: Joseph T Lyons <JosephTLyons@gmail.com> Co-authored-by: Mikayla <mikayla@zed.dev> Co-authored-by: Jason <jason@zed.dev> Co-authored-by: Antonio Scandurra <me@as-cii.com> Co-authored-by: Max Brunsfeld <maxbrunsfeld@gmail.com> Co-authored-by: Marshall <marshall@zed.dev> Co-authored-by: Nathan Sobo <nathan@zed.dev> Co-authored-by: Jason Mancuso <7891333+jvmncs@users.noreply.github.com> Co-authored-by: Piotr Osiewicz <24362066+osiewicz@users.noreply.github.com>
34 lines
1 KiB
Markdown
34 lines
1 KiB
Markdown
# Kotlin
|
|
|
|
Kotlin language support in Zed is provided by the community-maintained [Kotlin extension](https://github.com/zed-extensions/kotlin).
|
|
Report issues to: [https://github.com/zed-extensions/kotlin/issues](https://github.com/zed-extensions/kotlin/issues)
|
|
|
|
- Tree Sitter: [fwcd/tree-sitter-kotlin](https://github.com/fwcd/tree-sitter-kotlin)
|
|
- Language Server: [fwcd/kotlin-language-server](https://github.com/fwcd/kotlin-language-server)
|
|
|
|
## Configuration
|
|
|
|
Workspace configuration options can be passed to the language server via lsp
|
|
settings in `settings.json`.
|
|
|
|
The following example changes the JVM target from `default` (which is 1.8) to
|
|
`17`:
|
|
|
|
```json
|
|
{
|
|
"lsp": {
|
|
"kotlin-language-server": {
|
|
"settings": {
|
|
"compiler": {
|
|
"jvm": {
|
|
"target": "17"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
```
|
|
|
|
The full list of workspace configuration options can be found
|
|
[here](https://github.com/fwcd/kotlin-language-server/blob/main/server/src/main/kotlin/org/javacs/kt/Configuration.kt).
|