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()