From a3d9395455f2b2e3b50a0b0f37b8b4c23683f44a Mon Sep 17 00:00:00 2001 From: nzlov Date: Wed, 8 May 2024 15:20:11 +0800 Subject: [PATCH] fix(jdtls): update root dir (#2693) multi-module projects first. --- lua/lspconfig/server_configurations/jdtls.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/lspconfig/server_configurations/jdtls.lua b/lua/lspconfig/server_configurations/jdtls.lua index 9754a94e76..62bf2a562b 100644 --- a/lua/lspconfig/server_configurations/jdtls.lua +++ b/lua/lspconfig/server_configurations/jdtls.lua @@ -77,6 +77,8 @@ local function on_language_status(_, result) end local root_files = { + -- Multi-module projects + { '.git', 'build.gradle', 'build.gradle.kts' }, -- Single-module projects { 'build.xml', -- Ant @@ -84,8 +86,6 @@ local root_files = { 'settings.gradle', -- Gradle 'settings.gradle.kts', -- Gradle }, - -- Multi-module projects - { 'build.gradle', 'build.gradle.kts' }, } return {