diff --git a/lua/astrocommunity/pack/java/init.lua b/lua/astrocommunity/pack/java/init.lua index 270db1e55..1907d5ec0 100644 --- a/lua/astrocommunity/pack/java/init.lua +++ b/lua/astrocommunity/pack/java/init.lua @@ -103,8 +103,8 @@ return { }, filetypes = { "java" }, on_attach = function(client, bufnr) - require("jdtls").setup_dap() - require("astrolsp").on_attach(client, bufnr) + require("jdtls").setup_dap { hotcodereplace = "auto" } + require("astronvim.utils.lsp").on_attach(client, bufnr) end, }