Skip to content

Commit 384868d

Browse files
authored
feat: add kotlin_lsp from jetbrains #3867
1 parent 234eb3d commit 384868d

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

lsp/kotlin_lsp.lua

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---@brief
2+
---Pre-alpha official Kotlin support for Visual Studio Code and an implementation of Language Server Protocol for the Kotlin language.
3+
---
4+
---The server is based on IntelliJ IDEA and the IntelliJ IDEA Kotlin Plugin implementation.
5+
6+
--- The presence of one of these files indicates a project root directory
7+
--
8+
-- These are configuration files for the various build systems supported by
9+
-- Kotlin.
10+
return {
11+
filetypes = { 'kotlin' },
12+
cmd = { 'kotlin-lsp', '--stdio' },
13+
root_markers = {
14+
'settings.gradle', -- Gradle (multi-project)
15+
'settings.gradle.kts', -- Gradle (multi-project)
16+
'pom.xml', -- Maven
17+
'build.gradle', -- Gradle
18+
'build.gradle.kts', -- Gradle
19+
'workspace.json', -- Used to integrate your own build system
20+
},
21+
}

0 commit comments

Comments
 (0)