Changed DAP config to open UI during debugging in nvim
This commit is contained in:
parent
2e0a8f011f
commit
68e357b6f1
@ -28,4 +28,14 @@ require('dap').configurations.rust = {
|
|||||||
lldb -- different debuggers or more configurations can be used here
|
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
|
Loading…
Reference in New Issue
Block a user