diff --git a/lua/ow/plugins/nvim-dap-ui.lua b/lua/ow/plugins/nvim-dap-ui.lua index 4667043..e204451 100644 --- a/lua/ow/plugins/nvim-dap-ui.lua +++ b/lua/ow/plugins/nvim-dap-ui.lua @@ -4,5 +4,82 @@ return { "rcarriga/nvim-dap-ui", dependencies = { "mfussenegger/nvim-dap", "nvim-neotest/nvim-nio" }, - config = true, + keys = { + { + "du", + function() + require("dapui").toggle() + end, + }, + { + "dw", + function() + require("dapui").elements.watches.add(vim.fn.expand("")) + end, + }, + }, + opts = { + controls = { + element = "repl", + enabled = false, + }, + expand_lines = true, + floating = { + border = "single", + mappings = { + close = { "q", "" }, + }, + }, + force_buffers = true, + icons = { + collapsed = "+", + current_frame = "*", + expanded = "-", + }, + layouts = { + { + elements = { + { + id = "scopes", + size = 0.25, + }, + { + id = "breakpoints", + size = 0.25, + }, + { + id = "stacks", + size = 0.25, + }, + { + id = "watches", + size = 0.25, + }, + }, + position = "right", + size = 50, + }, + { + elements = { + { + id = "repl", + }, + }, + position = "bottom", + size = 15, + }, + }, + mappings = { + edit = "e", + expand = { "", "<2-LeftMouse>", "" }, + open = "o", + remove = "d", + repl = "r", + toggle = "t", + }, + render = { + indent = 1, + max_value_lines = 100, + }, + }, }