Skip to content

Commit

Permalink
perf(java): update nvim-java
Browse files Browse the repository at this point in the history
  • Loading branch information
liubang committed Jul 23, 2024
1 parent 1b0247e commit 66fe4aa
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions lua/lb/utils/util.lua
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,7 @@ local lsp_names = { --{{{
cssls = "CSS",
emmet_ls = "EMMET",
jdtls = "Java",
["spring-boot"] = "Spring",
nginx_language_server = "nginx",
}
--}}}
Expand Down
14 changes: 14 additions & 0 deletions lua/plugins/lsp/servers/java.lua
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,20 @@ local java = require("java")
local lspconfig = require("lspconfig")

java.setup({
root_markers = {
"settings.gradle",
"settings.gradle.kts",
"pom.xml",
"build.gradle",
"mvnw",
"gradlew",
"build.gradle",
"build.gradle.kts",
".git",
},
spring_boot_tools = {
enable = true,
},
java_debug_adapter = {
enable = true,
},
Expand Down

0 comments on commit 66fe4aa

Please sign in to comment.