From daf47385ec82fc421e7ab3dcbb7e8c8ff6a9d050 Mon Sep 17 00:00:00 2001 From: Baipyrus Date: Fri, 8 Mar 2024 09:19:12 +0100 Subject: [PATCH] improved debugging breakpoint keymaps --- lua/kickstart/plugins/debug.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lua/kickstart/plugins/debug.lua b/lua/kickstart/plugins/debug.lua index 0ebde2b..96ea895 100644 --- a/lua/kickstart/plugins/debug.lua +++ b/lua/kickstart/plugins/debug.lua @@ -29,10 +29,10 @@ return { vim.keymap.set('n', '', dap.step_into, { desc = 'Debug: Step Into' }) vim.keymap.set('n', '', dap.step_over, { desc = 'Debug: Step Over' }) vim.keymap.set('n', '', dap.step_out, { desc = 'Debug: Step Out' }) - vim.keymap.set('n', 'b', dap.toggle_breakpoint, { desc = 'Debug: Toggle Breakpoint' }) - vim.keymap.set('n', 'B', function() + vim.keymap.set('n', 'B', dap.toggle_breakpoint, { desc = 'Debug: Toggle Breakpoint' }) + vim.keymap.set('n', 'bs', function() dap.set_breakpoint(vim.fn.input 'Breakpoint condition: ') - end, { desc = 'Debug: Set Breakpoint' }) + end, { desc = 'Debug: [B]reakpoint [S]et' }) -- Dap UI setup dapui.setup {