⚙️ config(nvim): added quick keymap for breakpoints

This commit is contained in:
Sergio Laín 2023-11-25 17:59:27 +01:00
parent 556427128b
commit 7c828d13b0
No known key found for this signature in database
GPG key ID: 14C9B8080681777B
3 changed files with 9 additions and 3 deletions

View file

@ -96,5 +96,4 @@
"NEWS.md": "2123"
},
"version": 2
}
}

View file

@ -40,7 +40,7 @@ return {
desc = "Debug: Step out",
},
{
"<F9>",
"<F2>",
function()
require("dap").toggle_breakpoint()
end,

View file

@ -6,11 +6,18 @@ return {
{ "<leader>dbd", "<cmd>PBClearAllBreakpoints<cr>", desc = "Delete All Breakpoints" },
{ "<leader>dbB", "<cmd>PBSetConditionalBreakpoint<cr>", desc = "Breakpoint Condition" },
{ "<leader>dbb", "<cmd>PBToggleBreakpoint<cr>", desc = "Toggle Breakpoint" },
{ "<F2>", "<cmd>PBToggleBreakpoint<cr>", desc = "Toggle Breakpoint" },
},
opts = {
load_breakpoints_event = { "BufReadPost" },
},
},
{
"mfussenegger/nvim-dap",
keys = {
{ "<F2>", false },
},
},
{
"folke/which-key.nvim",
opts = {