1
0
mirror of https://github.com/dcarrillo/dotfiles.git synced 2024-12-22 06:58:01 +00:00

[neovim] Update dap plugin

This commit is contained in:
Daniel Carrillo 2024-03-22 20:24:02 +01:00
parent c6c9440d60
commit 78b1ce547c
Signed by: dcarrillo
GPG Key ID: E4CD5C09DAED6E16
2 changed files with 12 additions and 7 deletions

View File

@ -233,7 +233,7 @@ require("lazy").setup({
-- DAP
{ "mfussenegger/nvim-dap", event = "VeryLazy", version = "0.*" },
{ "rcarriga/nvim-dap-ui", event = "VeryLazy", version = "v3.*" },
{ "rcarriga/nvim-dap-ui", event = "VeryLazy", version = "v4.*" },
{ "theHamsta/nvim-dap-virtual-text", event = "VeryLazy" },
-- Python

View File

@ -29,14 +29,19 @@ dapui.setup({
vim.fn.sign_define("DapBreakpoint", { text = "", texthl = "DiagnosticSignError", linehl = "", numhl = "" })
dap.listeners.after.event_initialized["dapui_config"] = function()
dap.listeners.after.event_initialized.dapui_config = function()
dapui.open()
end
dap.listeners.before.event_terminated["dapui_config"] = function()
dapui.close()
dap.listeners.before.attach.dapui_config = function()
dapui.open()
end
dap.listeners.before.event_exited["dapui_config"] = function()
dapui.close()
dap.listeners.before.launch.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