LSP-kotlin
August 3, 2026 · View on GitHub
Kotlin support for Sublime's LSP plugin.
Uses the official Kotlin LSP from JetBrains to provide completion, diagnostics, formatting and other features for Kotlin files. See the linked repository for more information. Note that the server is currently in alpha.
Prerequisites
None — the server is downloaded and managed automatically (it bundles its own Java runtime, so a separate JDK is not required).
Note
The server is a large download: roughly 390 MB, expanding to about 1.2 GB on disk. It is fetched once, on first use, and reused afterwards.
If you would rather manage the server yourself (or share one copy across editors), install the
kotlin-lsp CLI so it is available on your PATH and LSP-kotlin will use it instead of
downloading its own copy:
- Homebrew:
brew install JetBrains/utils/kotlin-lsp - Manual: download the standalone zip from the releases page,
unpack it,
chmod +x kotlin-lsp.sh, and symlink it onto yourPATHaskotlin-lsp(e.g.ln -s $KOTLIN_LSP_DIR/kotlin-lsp.sh $HOME/.local/bin/kotlin-lsp).
Installation
- Install Kotlin, LSP and LSP-kotlin from Package Control.
- Restart Sublime and open a Kotlin file — the server downloads on first use.
Configuration
Open the configuration file using the command palette with the Preferences: LSP-kotlin Settings
command or from the Sublime menu (Preferences > Package Settings > LSP > Servers > LSP-kotlin).
The default command is ["${server_path}", "--stdio"], where ${server_path} resolves to a
kotlin-lsp binary on your PATH if one is found (e.g. from Homebrew), and otherwise to the
managed copy that is downloaded into the package's storage directory. To force a specific
server, replace ${server_path} with an absolute path:
{
"command": ["/opt/homebrew/bin/kotlin-lsp", "--stdio"]
}
Settings
The language server doesn't expose customizable settings at the moment.