LSP-kotlin
Kotlin support for Sublime's LSP package
Details
Installs
- Total 3K
- Win 1K
- Mac 1K
- Linux 761
| 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 | Aug 1 | Jul 31 | Jul 30 | Jul 29 | Jul 28 | Jul 27 | Jul 26 | Jul 25 | Jul 24 | Jul 23 | Jul 22 | Jul 21 | Jul 20 | Jul 19 | Jul 18 | Jul 17 | Jul 16 | Jul 15 | Jul 14 | Jul 13 | Jul 12 | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Windows | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 2 | 0 | 1 | 1 | 0 | 0 | 2 | 0 | 0 | 3 | 1 | 2 | 2 | 1 | 1 | 2 | 0 | 0 | 0 | 3 | 1 | 3 | 0 | 1 | 0 | 0 | 2 | 1 | 1 | 1 | 0 | 0 |
| Mac | 0 | 2 | 2 | 0 | 1 | 2 | 3 | 3 | 1 | 2 | 1 | 1 | 2 | 2 | 3 | 2 | 0 | 0 | 1 | 1 | 0 | 2 | 0 | 1 | 0 | 2 | 1 | 0 | 0 | 5 | 0 | 1 | 2 | 0 | 1 | 1 | 1 | 1 | 0 | 5 | 0 | 2 | 2 | 1 | 0 |
| Linux | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 1 | 1 | 2 | 0 | 3 | 0 | 0 | 0 | 2 | 1 | 1 | 1 | 3 | 1 | 1 | 1 | 1 | 0 | 2 | 0 | 0 | 1 | 1 | 3 | 1 | 0 | 0 | 2 | 0 | 0 | 0 | 0 | 1 | 1 | 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.