diff --git a/.config/nvim/lua/blake/dap.lua b/.config/nvim/lua/blake/dap.lua index 4cde487..f9d1b1b 100644 --- a/.config/nvim/lua/blake/dap.lua +++ b/.config/nvim/lua/blake/dap.lua @@ -57,19 +57,18 @@ M.dap_ui = function() -- external keybinds -- require("dapui").open() -- require("dapui").close() + -- require("dapui").toggle() + -- toggle dap-ui with leader di as in dap interface vim.cmd 'nnoremap di lua require("dapui").toggle()' - require("dapui").setup({ icons = { expanded = "▾", collapsed = "▸" }, - mappings = { - expand = { "l", "", "<2-LeftMouse>", }, -- expand (or close) + expand = { "l", "h", "", "<2-LeftMouse>", }, -- expand (or close) open = "o", -- action depends on the dap server remove = "d", -- delete the variable edit = "s", -- (as in substitute) repl = "r", -- open a repl }, - sidebar = { -- You can change the order of elements in the sidebar elements = { @@ -82,13 +81,11 @@ M.dap_ui = function() size = 40, position = "left", -- Can be "left", "right", "top", "bottom" }, - tray = { elements = { "repl" }, size = 10, position = "bottom", -- Can be "left", "right", "top", "bottom" }, - floating = { max_height = nil, -- These can be integers or a float between 0 and 1. max_width = nil, -- Floats will be treated as percentage of your screen. @@ -96,7 +93,6 @@ M.dap_ui = function() close = { "q", "" }, }, }, - windows = { indent = 1 }, }) end -- <<<