aboutsummaryrefslogtreecommitdiffstats
path: root/lua/lspconfig/server_configurations/kotlin_language_server.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/lspconfig/server_configurations/kotlin_language_server.lua')
-rw-r--r--lua/lspconfig/server_configurations/kotlin_language_server.lua7
1 files changed, 1 insertions, 6 deletions
diff --git a/lua/lspconfig/server_configurations/kotlin_language_server.lua b/lua/lspconfig/server_configurations/kotlin_language_server.lua
index a955fe63..4f79b2a3 100644
--- a/lua/lspconfig/server_configurations/kotlin_language_server.lua
+++ b/lua/lspconfig/server_configurations/kotlin_language_server.lua
@@ -15,9 +15,6 @@ local root_files = {
'settings.gradle.kts', -- Gradle (multi-project)
'build.xml', -- Ant
'pom.xml', -- Maven
-}
-
-local fallback_root_files = {
'build.gradle', -- Gradle
'build.gradle.kts', -- Gradle
}
@@ -25,9 +22,7 @@ local fallback_root_files = {
return {
default_config = {
filetypes = { 'kotlin' },
- root_dir = function(fname)
- return util.root_pattern(unpack(root_files))(fname) or util.root_pattern(unpack(fallback_root_files))(fname)
- end,
+ root_dir = util.root_pattern(unpack(root_files)),
cmd = { bin_name },
},
docs = {