LSP-kotlin
Kotlin support for Sublime's LSP package
Details
Installs
- Total 3K
- Win 1K
- Mac 1K
- Linux 780
| Sep 16 | Sep 15 | Sep 14 | Sep 13 | Sep 12 | Sep 11 | Sep 10 | Sep 9 | Sep 8 | Sep 7 | Sep 6 | Sep 5 | Sep 4 | Sep 3 | Sep 2 | Sep 1 | Aug 31 | Aug 30 | Aug 29 | Aug 28 | Aug 27 | Aug 26 | Aug 25 | Aug 24 | Aug 23 | Aug 22 | Aug 21 | Aug 20 | Aug 19 | Aug 18 | Aug 17 | Aug 16 | Aug 15 | Aug 14 | Aug 13 | Aug 12 | Aug 11 | Aug 10 | Aug 9 | Aug 8 | Aug 7 | Aug 6 | Aug 5 | Aug 4 | Aug 3 | Aug 2 | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Windows | 0 | 0 | 0 | 1 | 0 | 1 | 2 | 0 | 1 | 2 | 1 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 4 | 1 | 0 | 2 | 2 | 0 | 2 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 2 | 0 | 1 | 1 | 0 | 0 | 2 | 0 | 0 | 3 | 1 |
| Mac | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 3 | 2 | 0 | 2 | 2 | 1 | 1 | 1 | 1 | 1 | 3 | 1 | 2 | 2 | 3 | 2 | 2 | 0 | 1 | 2 | 3 | 3 | 1 | 2 | 1 | 1 | 2 | 2 | 3 | 2 | 0 | 0 | 1 | 1 | 0 | 2 | 0 | 1 |
| Linux | 1 | 0 | 0 | 0 | 0 | 1 | 2 | 0 | 3 | 1 | 0 | 2 | 0 | 0 | 1 | 1 | 1 | 2 | 2 | 1 | 0 | 0 | 2 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 1 | 1 | 2 | 0 | 3 | 0 | 0 | 0 | 2 | 1 | 1 | 1 | 3 | 1 |
Readme
- Source
- raw.githubusercontent.com
LSP-kotlin
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.