20 lines
483 B
Lua
20 lines
483 B
Lua
local M = { "rcarriga/nvim-dap-ui" }
|
|
|
|
local opts = {}
|
|
|
|
M.config = function()
|
|
local dap = require("dap")
|
|
local dapui = require("dapui")
|
|
dapui.setup(opts)
|
|
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
|
|
end
|
|
|
|
return M
|