From 47a641c415ee4bceaeed53510c9aa44fcc869fa0 Mon Sep 17 00:00:00 2001 From: YeonGyu-Kim Date: Wed, 14 Jan 2026 22:59:18 +0900 Subject: [PATCH] feat(lsp): add kotlin-ls LSP server support (#782) Add Kotlin LSP server (kotlin-ls) to the built-in servers catalog, syncing with OpenCode's server.ts. Includes: - BUILTIN_SERVERS entry with kotlin-lsp command - LSP_INSTALL_HINTS entry pointing to GitHub repo - Extensions: .kt, .kts (already in EXT_TO_LANG) Co-authored-by: justsisyphus --- src/tools/lsp/constants.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/tools/lsp/constants.ts b/src/tools/lsp/constants.ts index a37582d22..d5aada383 100644 --- a/src/tools/lsp/constants.ts +++ b/src/tools/lsp/constants.ts @@ -80,6 +80,7 @@ export const LSP_INSTALL_HINTS: Record = { tinymist: "See https://github.com/Myriad-Dreamin/tinymist", "haskell-language-server": "ghcup install hls", bash: "npm install -g bash-language-server", + "kotlin-ls": "See https://github.com/Kotlin/kotlin-lsp", } // Synced with OpenCode's server.ts @@ -246,6 +247,10 @@ export const BUILTIN_SERVERS: Record> = { command: ["haskell-language-server-wrapper", "--lsp"], extensions: [".hs", ".lhs"], }, + "kotlin-ls": { + command: ["kotlin-lsp"], + extensions: [".kt", ".kts"], + }, } // Synced with OpenCode's language.ts