update debug

This commit is contained in:
asep komarudin 2023-01-18 17:42:00 +07:00
parent f55135f114
commit 0e0f7d17cf
4 changed files with 38 additions and 1 deletions

13
lua/user/dapui.lua Normal file
View file

@ -0,0 +1,13 @@
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
dapui.setup()
vim.fn.sign_define("DapBreakpoint", { text = "🟥", texthl = "", linehl = "", numhl = "" })
vim.fn.sign_define("DapStopped", { text = "▶️", texthl = "", linehl = "", numhl = "" })