Changed DAP config to open UI during debugging in nvim

This commit is contained in:
Luke Else 2023-03-14 23:36:47 +00:00
parent 2e0a8f011f
commit 68e357b6f1

View File

@ -28,4 +28,14 @@ require('dap').configurations.rust = {
lldb -- different debuggers or more configurations can be used here
}
require('dap-ui').setup{}
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()
dapui.close()
end
dap.listeners.before.event_exited["dapui_config"] = function()
dapui.close()
end