diff options
Diffstat (limited to 'lsp/jdtls.lua')
| -rw-r--r-- | lsp/jdtls.lua | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/lsp/jdtls.lua b/lsp/jdtls.lua index cfd32aaf..728f5907 100644 --- a/lsp/jdtls.lua +++ b/lsp/jdtls.lua @@ -65,17 +65,23 @@ end local root_markers1 = { -- Multi-module projects + 'mvnw', + 'gradlew', 'build.gradle', 'build.gradle.kts', + -- Use git directory as last resort for multi-module maven projects + -- In multi-module maven projects it is not really possible to determine what is the parent directory + -- and what is submodule directory. And jdtls does not break if the parent directory is at higher level than + -- actual parent pom.xml so propagating all the way to root git directory is fine + '.git', +} +local root_markers2 = { -- Single-module projects 'build.xml', -- Ant 'pom.xml', -- Maven 'settings.gradle', -- Gradle 'settings.gradle.kts', -- Gradle } -local root_markers2 = { - '.git', -} ---@type vim.lsp.Config return { |
