nvim: Fix dap layout

This commit is contained in:
Oshgnacknak 2025-07-31 18:39:46 +02:00
parent acd8a470fb
commit c523a47eca
Signed by: Oshgnacknak
GPG key ID: 8CB7375654585956

View file

@ -1,7 +1,27 @@
local dap = require("dap")
local dapui = require("dapui")
dapui.setup({})
dapui.setup({
layouts = {
{
position = "left",
size = 0.3,
elements = {
{ id = "scopes", size = 0.25 },
"stacks",
"watches",
"breakpoints",
},
},
{
position = "bottom",
size = 20,
elements = {
"repl",
},
},
}
})
dap.adapters.lldb = {
type = 'server',
@ -23,7 +43,6 @@ dap.configurations.rust = {
end,
cwd = "${workspaceFolder}",
stopOnEntry = false,
-- runInTerminal = true,
initCommands = {
"gdb-remote localhost:1234",
@ -66,3 +85,10 @@ end
-- dap.listeners.before.event_exited.dapui_config = function()
-- dapui.close()
-- end
vim.api.nvim_create_autocmd("BufWritePost", {
pattern = "dapui-repl-*",
callback = function()
vim.cmd("AnsiEsc")
end,
})