jones-nvim-config/lua/config/dap-ui.lua

14 lines
372 B
Lua
Raw Permalink Normal View History

2024-08-06 04:26:50 +00:00
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()
dapui.close({})
end
dap.listeners.before.event_exited["dapui_config"] = function()
dapui.close({})
end
vim.keymap.set("n", "<leader>ui", require("dapui").toggle)