25 lines
745 B
Lua
25 lines
745 B
Lua
|
local dap = require("dap")
|
||
|
local dapui = require("dapui")
|
||
|
|
||
|
dapui.setup()
|
||
|
|
||
|
local sign = vim.fn.sign_define
|
||
|
|
||
|
sign("DapBreakpoint", { text = "●", texthl = "DapBreakpoint", linehl = "", numhl = ""})
|
||
|
sign("DapBreakpointCondition", { text = "●", texthl = "DapBreakpointCondition", linehl = "", numhl = ""})
|
||
|
sign("DapLogPoint", { text = "◆", texthl = "DapLogPoint", linehl = "", numhl = ""})
|
||
|
|
||
|
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.api.nvim_create_user_command("DapUIFloat", function ()
|
||
|
dapui.float_element()
|
||
|
end, {})
|