Skip to content

Commit 603f270

Browse files
authored
fix: some dap warnings are not respecting notification rules (nvim-java#197)
1 parent 2b7cdc1 commit 603f270

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

lua/java/dap/init.lua

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,9 @@ function M:config_dap()
100100
-- if dap is already running, need to terminate it to apply new config
101101
if nvim_dap.session then
102102
nvim_dap.terminate()
103-
notify.warn('Terminating current dap session')
103+
if vim.g.nvim_java_config.notifications.dap then
104+
notify.warn('Terminating current dap session')
105+
end
104106
end
105107
-- end
106108
nvim_dap.configurations.java = dap_config

0 commit comments

Comments
 (0)