Skip to content

Commit

Permalink
feat(java): allow opts for setup_dap_main_class_configs() (LazyVim#2581)
Browse files Browse the repository at this point in the history
  • Loading branch information
Frederick888 authored and konosubakonoakua committed Apr 24, 2024
1 parent 7daf7f7 commit 4e3cab7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lua/lazyvim/plugins/extras/lang/java.lua
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ return {

-- These depend on nvim-dap, but can additionally be disabled by setting false here.
dap = { hotcodereplace = "auto", config_overrides = {} },
dap_main = {},
test = true,
}
end,
Expand Down Expand Up @@ -198,7 +199,7 @@ return {
if opts.dap and Util.has("nvim-dap") and mason_registry.is_installed("java-debug-adapter") then
-- custom init for Java debugger
require("jdtls").setup_dap(opts.dap)
require("jdtls.dap").setup_dap_main_class_configs()
require("jdtls.dap").setup_dap_main_class_configs(opts.dap_main)

-- Java Test require Java debugger to work
if opts.test and mason_registry.is_installed("java-test") then
Expand Down

0 comments on commit 4e3cab7

Please sign in to comment.