feat: richer dapui chrome — controls toolbar, panel titles, nicer icons

This commit is contained in:
swaits committed 2026-04-11 19:34:01 -06:00
1 parent 8702bcb312
commit 1fcee36139
2 files changed
+8 -11

No files matched your search

+7 -1
View File
@@ -28,7 +28,13 @@ M.defaults = {
}, },
dapui = { dapui = {
controls = { enabled = false }, icons = { expanded = "▼", collapsed = "▶", current_frame = "➤" },
controls = {
enabled = true,
element = "repl",
},
floating = { border = "rounded" },
render = { indent = 2, max_type_length = 20 },
layouts = { layouts = {
{ {
position = "right", position = "right",
+1 -10
View File
@@ -26,7 +26,7 @@ local function ensure_dapui()
if active then M.exit() end if active then M.exit() end
end end
-- set winbar titles on dapui panels -- set winbar titles on dapui panels (REPL gets controls toolbar from dapui)
local titles = { local titles = {
dapui_scopes = " Scopes", dapui_scopes = " Scopes",
dapui_watches = " Watches", dapui_watches = " Watches",
@@ -46,15 +46,6 @@ local function ensure_dapui()
end end
end, end,
}) })
vim.api.nvim_create_autocmd("FileType", {
pattern = "dap-repl",
callback = function(args)
vim.schedule(function()
local win = vim.fn.bufwinid(args.buf)
if win ~= -1 then vim.wo[win].winbar = " REPL" end
end)
end,
})
end end
local function ensure_vt() local function ensure_vt()