[neovim] Automatic toggling of dap-ui panels

This commit is contained in:
Adam Cooper 2024-01-02 19:44:48 -05:00
parent 70defe1866
commit 945556897f

View file

@ -600,7 +600,18 @@ vim.keymap.set('n', '<leader>st', '<cmd>Lspsaga term_toggle<CR>')
require('dap-go').setup()
require('dapui').setup()
local dap, dapui = require("dap"), require("dapui")
dapui.setup()
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
-- Tweak GitSigns blame color
-- This differentiates the cursorline from the git blame text