This is a fork of amgdev9/kotlin-lsp which is an implementation of the Language Server Protocol for the Kotlin programming language, leveraging the Kotlin Analysis API to provide real time diagnostics, syntax and semantic analysis of Kotlin source files and libraries.
It's developed as part of the Kotlin LSP Project of Google Summer of Code 2025 under Kotlin Foundation
You can download the latest release assets from the GitHub Releases page.
- VSCode Extension (
.vsix
): kotlin-lsp-vscode-0.1.15.vsix - Language Server Executable (
.zip
): kotlin-lsp-0.1.15.zip
create a file in your <YOUR_NEOVIM_CONFIG_DIRECTORY>/after/plugin/kotlin.lua
and add the below lines in your kotlin.lua
local root_dir = vim.fs.root(0, {"settings.gradle.kts", "settings.gradle"})
if not root_dir then
root_dir = vim.fs.root(0, {"build.gradle.kts", "build.gradle"})
end
vim.lsp.config['kotlinlsp'] = {
cmd = { '<YOUR_KOTLIN_LSP_DIRECTORY>/lsp-dist/kotlin-lsp-1.5/bin/kotlin-lsp' },
-- if you want to connect through tcp use --tcp flag
-- cmd = vim.lsp.rpc.connect('0.0.0.0', tonumber(2090)),
filetypes = { 'kotlin' },
root_dir = root_dir
}
vim.lsp.enable('kotlinlsp')
Now you can directly open any file of a project to start the LSP
- Download the .vsix extension from Releases or Build it from source
- Open the Extensions Tab and
Click on Install from VSIX
Now you can directly open any file of a project to start the LSP
-
see Building from source to build the packages from source.
-
see Roadmap for current progress of the project.