Fork of zed-extensions/kotlin
  • Rust 51.2%
  • Tree-sitter Query 48.8%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
zed-zippy[bot] b099c12c2a
Some checks failed
bump_version.yml / Bump version to 0.2.1 (#85) (push) Failing after 0s
Bump version to 0.2.1 (#85)
This PR bumps the version of this extension to v0.2.1

Co-authored-by: zed-zippy[bot] <234243425+zed-zippy[bot]@users.noreply.github.com>
2026-03-26 13:05:56 +01:00
.github/workflows Update CI workflows to 3183c04 (#82) 2026-03-25 18:55:08 +00:00
languages/kotlin Format Tree-sitter queries (#84) 2026-03-26 12:02:04 +00:00
src Remove old workaround (#83) 2026-03-26 12:00:33 +00:00
.gitignore LSP support (#8) 2024-05-13 20:43:37 +02:00
Cargo.lock Bump version to 0.2.1 (#85) 2026-03-26 13:05:56 +01:00
Cargo.toml Bump version to 0.2.1 (#85) 2026-03-26 13:05:56 +01:00
extension.toml Bump version to 0.2.1 (#85) 2026-03-26 13:05:56 +01:00
LICENSE Initial commit 2024-02-27 11:35:56 +01:00
README.md Update README.md, k should be uppercased in config (#42) 2025-08-27 11:00:15 +02:00

zed-kotlin

Kotlin language support for Zed.

Language Servers

Kotlin Language Server

The Kotlin Language Server is an unofficial LSP for Kotlin, it is currently the most stable and popular language server for Kotlin. It is enabled by default by this extension.

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:

{
  "lsp": {
    "kotlin-language-server": {
      "settings": {
        "compiler": {
          "jvm": {
            "target": "17"
          }
        }
      }
    }
  }
}

The full list of workspace configuration options can be found here.

Kotlin LSP

Kotlin LSP is an official LSP implementation for Kotlin, built by JetBrains. It is currently pre-alpha.

Configuration

To use Kotlin LSP instead of the Kotlin Language Server, you must explicity enable it in your settings.json:

{
  "languages": {
    "Kotlin": {
      "language_servers": ["kotlin-lsp"]
    }
  }
}

It will be downloaded and updated automatically when enabled, however, you can use a manually installed version by setting the path to the kotlin-lsp.sh script in the release assets:

{
  "lsp": {
    "kotlin-lsp": {
      "binary": {
        "path": "path/to/kotlin-lsp.sh",
        "arguments": [ "--stdio" ]
      }
    }
  }
}

Note that the kotlin-lsp.sh script expects to be run from within the unzipped release zip file, and should not be moved elsewhere.