2023-09-14 18:15:11 +00:00
|
|
|
require("dapui").setup()
|
|
|
|
|
|
|
|
local dap, dapui = require("dap"), require("dapui")
|
|
|
|
dap.listeners.after.event_initialized["dapui_config"] = function()
|
|
|
|
dapui.open()
|
|
|
|
end
|
|
|
|
dap.listeners.before.event_terminated["dapui_config"] = function()
|
2023-10-09 12:03:25 +00:00
|
|
|
-- We do not close on this event, but only when we press F4
|
|
|
|
--dapui.close()
|
2023-09-14 18:15:11 +00:00
|
|
|
end
|
|
|
|
dap.listeners.before.event_exited["dapui_config"] = function()
|
|
|
|
dapui.close()
|
|
|
|
end
|
2023-10-09 12:03:25 +00:00
|
|
|
|
|
|
|
vim.keymap.set('n', '<F4>', function() dapui.close() end)
|
|
|
|
vim.keymap.set('n', '<M-k>', function() dapui.eval() end)
|