2024-06-13 16:38:06 +00:00
|
|
|
return {
|
2024-06-19 16:46:34 +00:00
|
|
|
"nvim-java/nvim-java",
|
|
|
|
dependencies = {
|
|
|
|
"nvim-java/lua-async-await",
|
|
|
|
"nvim-java/nvim-java-refactor",
|
|
|
|
"nvim-java/nvim-java-core",
|
|
|
|
"nvim-java/nvim-java-test",
|
|
|
|
"nvim-java/nvim-java-dap",
|
|
|
|
"MunifTanjim/nui.nvim",
|
|
|
|
"neovim/nvim-lspconfig",
|
|
|
|
"mfussenegger/nvim-dap",
|
|
|
|
{
|
|
|
|
"williamboman/mason.nvim",
|
|
|
|
opts = {
|
|
|
|
registries = {
|
|
|
|
"github:nvim-java/mason-registry",
|
|
|
|
"github:mason-org/mason-registry",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
config = function()
|
|
|
|
require("java").setup({
|
|
|
|
root_markers = {
|
|
|
|
"settings.gradle",
|
|
|
|
"settings.gradle.kts",
|
|
|
|
"pom.xml",
|
|
|
|
"build.gradle",
|
|
|
|
"mvnw",
|
|
|
|
"gradlew",
|
|
|
|
"build.gradle",
|
|
|
|
"build.gradle.kts",
|
|
|
|
".git",
|
|
|
|
},
|
|
|
|
java_test = {
|
|
|
|
enable = true,
|
|
|
|
},
|
2024-06-20 16:24:35 +00:00
|
|
|
java_debug_adapter = {
|
|
|
|
enable = true,
|
|
|
|
},
|
2024-06-19 16:46:34 +00:00
|
|
|
})
|
|
|
|
require("lspconfig").jdtls.setup({})
|
|
|
|
end,
|
2024-06-13 16:38:06 +00:00
|
|
|
}
|