Skip to content

Commit 1986e85

Browse files
chore(build): auto-generate docs
1 parent 24755ef commit 1986e85

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

docs/extras/lang/java.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,7 @@ opts = function()
178178

179179
-- These depend on nvim-dap, but can additionally be disabled by setting false here.
180180
dap = { hotcodereplace = "auto", config_overrides = {} },
181+
-- Can set this to false to disable main class scan, which is a performance killer for large project
181182
dap_main = {},
182183
test = true,
183184
settings = {
@@ -249,6 +250,7 @@ end
249250

250251
-- These depend on nvim-dap, but can additionally be disabled by setting false here.
251252
dap = { hotcodereplace = "auto", config_overrides = {} },
253+
-- Can set this to false to disable main class scan, which is a performance killer for large project
252254
dap_main = {},
253255
test = true,
254256
settings = {
@@ -365,7 +367,9 @@ end
365367
if opts.dap and LazyVim.has("nvim-dap") and mason_registry.is_installed("java-debug-adapter") then
366368
-- custom init for Java debugger
367369
require("jdtls").setup_dap(opts.dap)
368-
require("jdtls.dap").setup_dap_main_class_configs(opts.dap_main)
370+
if opts.dap_main then
371+
require("jdtls.dap").setup_dap_main_class_configs(opts.dap_main)
372+
end
369373

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

0 commit comments

Comments
 (0)