pojokcodeid.nvim-lazy/lua/user/dapui.lua
2023-01-20 23:28:37 +07:00

16 lines
549 B
Lua

local status_ok, dap, dapui = require("dap"), require("dapui")
if not status_ok then
return
end
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 = "" })