astro-nvim-v3 - prevent dap ui close when session terminate
This commit is contained in:
@@ -43,26 +43,26 @@ return {
|
||||
-- },
|
||||
},
|
||||
position = "bottom",
|
||||
size = 20,
|
||||
size = 8,
|
||||
},
|
||||
},
|
||||
},
|
||||
config = function(_, opts)
|
||||
local dap = require "dap"
|
||||
local dapui = require "dapui"
|
||||
-- config = function(_, opts)
|
||||
-- local dap = require "dap"
|
||||
-- local dapui = require "dapui"
|
||||
|
||||
-- Initialize dap-ui
|
||||
dapui.setup(opts)
|
||||
-- -- Initialize dap-ui
|
||||
-- dapui.setup(opts)
|
||||
|
||||
-- Prevent UI from closing when debugging session ends
|
||||
dap.listeners.after.event_terminated["dapui"] = function()
|
||||
-- Do nothing, keeping the UI open
|
||||
end
|
||||
dap.listeners.after.event_exited["dapui"] = function()
|
||||
-- Do nothing, keeping the UI open
|
||||
end
|
||||
-- -- Prevent UI from closing when debugging session ends
|
||||
-- dap.listeners.after.event_terminated["dapui"] = function()
|
||||
-- -- Do nothing, keeping the UI open
|
||||
-- end
|
||||
-- dap.listeners.after.event_exited["dapui"] = function()
|
||||
-- -- Do nothing, keeping the UI open
|
||||
-- end
|
||||
|
||||
-- Optionally, open dap-ui when session starts
|
||||
dap.listeners.after.event_initialized["dapui"] = function() dapui.open() end
|
||||
end,
|
||||
-- -- Optionally, open dap-ui when session starts
|
||||
-- dap.listeners.after.event_initialized["dapui"] = function() dapui.open() end
|
||||
-- end,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user