From b86ddc32e81d3c7ae1add7e03f946e7253aa7301 Mon Sep 17 00:00:00 2001 From: Emilio Ziniades Date: Sun, 19 Nov 2023 10:15:50 +0200 Subject: fix(kotlin_language_server): update root_dir --- lua/lspconfig/server_configurations/kotlin_language_server.lua | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'lua/lspconfig/server_configurations/kotlin_language_server.lua') 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 = { -- cgit v1.2.3-70-g09d2