Home Explore Blog CI



zed

docs/src/languages/kotlin.md
f41cdc3da5f86b5a0b23554d1100014f9ee6f44852c27d9b0000000300000400
# 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).

Chunks
fea8258a (1st chunk of `docs/src/languages/kotlin.md`)
Title: Kotlin Support and Configuration in Zed
Summary
Zed supports Kotlin via a community-maintained extension. Issues should be reported to the extension's GitHub repository. Configuration options for the Kotlin language server, such as changing the JVM target, can be set through the `settings.json` file using LSP settings. The full list of configuration options is available in the Kotlin language server's source code.