1
0
mirror of https://github.com/dcarrillo/dotfiles.git synced 2024-11-14 17:01:12 +00:00
dotfiles/.config/nvim/lua/plugins/dap.lua

41 lines
790 B
Lua
Raw Normal View History

2023-04-12 18:09:30 +00:00
local dap = require("dap")
local dapui = require("dapui")
2022-10-01 11:46:18 +00:00
2023-04-12 18:09:30 +00:00
require("dap-install").config("python", {})
2022-11-05 12:30:40 +00:00
dapui.setup({
layouts = {
{
elements = {
{ id = "scopes", size = 0.25 },
"watches",
"stacks",
"breakpoints",
},
size = 50, -- columns
position = "left",
},
{
elements = {
"repl",
-- "console",
},
size = 0.25, -- 25% of total lines
position = "bottom",
},
},
})
2022-10-01 11:46:18 +00:00
vim.fn.sign_define("DapBreakpoint", { text = "", texthl = "DiagnosticSignError", 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