From 1fcee361396fae561d038069f08d71fdbdd1888b Mon Sep 17 00:00:00 2001 From: Stephen Waits Date: Sat, 11 Apr 2026 19:33:39 -0600 Subject: [PATCH] =?UTF-8?q?feat:=20richer=20dapui=20chrome=20=E2=80=94=20c?= =?UTF-8?q?ontrols=20toolbar,=20panel=20titles,=20nicer=20icons?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lua/tiny-debugger/config.lua | 8 +++++++- lua/tiny-debugger/mode.lua | 11 +---------- 2 files changed, 8 insertions(+), 11 deletions(-) diff --git a/lua/tiny-debugger/config.lua b/lua/tiny-debugger/config.lua index adff4e5..afef858 100644 --- a/lua/tiny-debugger/config.lua +++ b/lua/tiny-debugger/config.lua @@ -28,7 +28,13 @@ M.defaults = { }, 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 = { { position = "right", diff --git a/lua/tiny-debugger/mode.lua b/lua/tiny-debugger/mode.lua index c482e43..7641d9e 100644 --- a/lua/tiny-debugger/mode.lua +++ b/lua/tiny-debugger/mode.lua @@ -26,7 +26,7 @@ local function ensure_dapui() if active then M.exit() end end - -- set winbar titles on dapui panels + -- set winbar titles on dapui panels (REPL gets controls toolbar from dapui) local titles = { dapui_scopes = " Scopes", dapui_watches = " Watches", @@ -46,15 +46,6 @@ local function ensure_dapui() 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 local function ensure_vt()