Built the way rust-analyzer is: one native binary, no JVM of its own and no background compiler. Type inference and data-flow analysis behind hover, inlay hints and diagnostics, for Kotlin/JVM, Multiplatform and Android.
Downloads the release into ~/.local/bin:
curl -fsSL https://raw.githubusercontent.com/bash-spbu/kotlin-analyzer/main/editors/install-server.sh | shIn PowerShell, into %LOCALAPPDATA%\Programs\kotlin-analyzer:
irm https://raw.githubusercontent.com/bash-spbu/kotlin-analyzer/main/editors/install-server.ps1 | iexWith a Rust toolchain:
cargo install --git https://github.com/bash-spbu/kotlin-analyzer kotlin-analyzerThe VS Code, Neovim and Zed extensions download the server on first use, so this step is optional there.
Runs on
Builds with
How it fits
Gradle or Maven runs once, to export the build's model. After that the server reads sources, library jars and the JDK itself, and answers from an incremental index.
incremental · no JVM of its own
Built in
Diagnostics report only what the analysis is sure of, so a project that compiles stays free of false errors.
Generics, lambdas and overload resolution, behind hover, inlay hints and diagnostics.
Smart casts and null safety, so a checked value is known to be non-null.
Breakpoints in JVM tests and programs, with the values of locals inline, in Zed and VS Code.
Libraries without sources open as code: declarations as Kotlin or Java, bodies as Java.
ktfmt's output, natively in Rust: a file, a range, or a block as its } is typed.
Definitions, references, types, outlines and diagnostics from the editor's own analysis, and a debugger the agent drives.
Editors
Each editor's settings are in its README under editors/.
Install the extension from the release; it downloads the server on first use.
curl -LO https://github.com/bash-spbu/kotlin-analyzer/releases/download/v1.3.0/kotlin-analyzer-1.3.0.vsix
code --install-extension kotlin-analyzer-1.3.0.vsixNeovim 0.11+, with lazy.nvim:
{
"bash-spbu/kotlin-analyzer",
ft = { "kotlin", "java" },
config = function(plugin)
vim.opt.runtimepath:append(plugin.dir .. "/editors/neovim")
require("kotlin_analyzer").setup()
end,
}Installs the server into ~/.local/bin and adds it to languages.toml:
git clone https://github.com/bash-spbu/kotlin-analyzer && kotlin-analyzer/editors/helix/install.shgit clone https://github.com/bash-spbu/kotlin-analyzerThen run zed: install dev extension and pick kotlin-analyzer/editors/zed.
With the server on the PATH, add this repository as a plugin marketplace and install the plugin:
claude plugin marketplace add bash-spbu/kotlin-analyzerclaude plugin install kotlin-analyzer@kotlin-analyzerMade to be customised
No language server covers every combination of SDK, Kotlin and Gradle versions, build scripts and project conventions, and no editor extension suits everyone. Instead of trying to, the project is laid out so your own agent can adapt the server or an extension to your project quickly and with few tokens. A missing feature usually takes a couple of hundred lines in the right place.
Compared
| kotlin-analyzer | JetBrains kotlin-lsp | fwcd kotlin-language-server | |
|---|---|---|---|
| Status | stable | alpha | deprecated by its README in favour of kotlin-lsp |
| Runs as | one native binary, no JVM | a JVM application built on IntelliJ IDEA | a JVM application built on the Kotlin compiler |
| Source | open, Apache-2.0 | partly closed source, Apache-2.0 | open, MIT |
| Multiplatform | yes (expect/actual, per source set) | planned | no |
| Android | yes (variants, SDK, R) | experimental | no |
| Build systems | Gradle; Maven; others by directory layout | Gradle, Maven | Gradle, Maven |
| Own extensions | VS Code, Neovim, Helix, Zed, Claude Code | VS Code; scripts for others | VS Code |
| Diagnostics | only what it is sure of: imports, calls, types and returns, nullability, overrides, when, casts, deprecation and opt-in, packages | the full compiler's, with IntelliJ's quick fixes | the compiler's |
| Refactorings | rename, moving a file (its package and imports follow), organize imports, formatting (ktrs or ktfmt) | rename, formatting, organize imports | rename |
Choose kotlin-analyzer for large or multiplatform projects, low memory, or an editor other than VS Code, and when you want to change the server yourself or with an agent. Choose JetBrains' server for a JVM project where you want every compiler error and more quick fixes.
Benchmarks
| ktor | nowinandroid | kotlinconf-app | |
|---|---|---|---|
| Kind | Multiplatform library | Android app | Multiplatform app |
| Kotlin files / modules | 2,344 / 137 | 281 / 45 | 260 / 10 |
| Workspace load | 2.6 s | 1.9 s | 0.5 s |
| Memory after a session | 203 MB | 168 MB | 116 MB |
| Values with a known type | 97.1% | 97.6% | 96.4% |
| Edit → fresh diagnostics, p50 / p95 | 2.0 / 20 ms | 1.9 / 6 ms | 2.1 / 13 ms |
| Hover, p50 / p95 | 0.1 / 3.9 ms | 0.1 / 38 ms | 0.1 / 7.0 ms |
| Go to definition, p50 / p95 | 0.1 / 2.3 ms | 0.1 / 19 ms | 0.1 / 4.1 ms |
| Completion, p50 / p95 | 5 / 22 ms | 7 / 23 ms | 5 / 12 ms |
Version 1.1.0 on an Apple M4 Pro with 24 GB RAM, over stdio, the way an editor talks to the server. Gradle's own time is not counted. Method and script: README → Benchmarks.
Tested on
Eight large private Spring Boot monorepos built with Gradle, 260 to 8,400 files each, kept at zero false errors.
nowinandroid (Compose, Hilt, flavours) with AGP 9.3.
kotlinconf-app and ktor: JVM, JS, Wasm and Native targets, expect/actual.
Gradle 9.x with the Kotlin DSL, Kotlin 2.3–2.5, JDK 21 and 25; VS Code, Neovim, Helix and Zed. Maven: tried on four open-source builds.
Not yet tried in an editor: Linux and Windows builds (released and tested in CI), Kotlin/JS, Wasm and Native libraries, old toolchains. See Not tested.