File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -178,6 +178,7 @@ opts = function()
178
178
179
179
-- These depend on nvim-dap, but can additionally be disabled by setting false here.
180
180
dap = { hotcodereplace = " auto" , config_overrides = {} },
181
+ -- Can set this to false to disable main class scan, which is a performance killer for large project
181
182
dap_main = {},
182
183
test = true ,
183
184
settings = {
249
250
250
251
-- These depend on nvim-dap, but can additionally be disabled by setting false here.
251
252
dap = { hotcodereplace = " auto" , config_overrides = {} },
253
+ -- Can set this to false to disable main class scan, which is a performance killer for large project
252
254
dap_main = {},
253
255
test = true ,
254
256
settings = {
365
367
if opts .dap and LazyVim .has (" nvim-dap" ) and mason_registry .is_installed (" java-debug-adapter" ) then
366
368
-- custom init for Java debugger
367
369
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
369
373
370
374
-- Java Test require Java debugger to work
371
375
if opts .test and mason_registry .is_installed (" java-test" ) then
You can’t perform that action at this time.
0 commit comments