Skip to content

Commit

Permalink
feat(debugging): add persistent-breakpoints.nvim (#267)
Browse files Browse the repository at this point in the history
  • Loading branch information
jay-babu authored and Uzaaft committed Jun 11, 2023
1 parent 609e8e4 commit b6adff4
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# persistent-breakpoints

**Repository:** https://github.com/Weissle/persistent-breakpoints.nvim

persistent-breakpoints is a lua plugin for Neovim to save the nvim-dap's checkpoints to file and automatically load
them when you open neovim. It is based on the code in here, but has better performance and some bugs are fixed.

Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
return {
"Weissle/persistent-breakpoints.nvim",
opts = function(_, opts)
return require("astronvim.utils").extend_tbl(opts, {
load_breakpoints_event = { "BufReadPost" },
})
end,
keys = {
{
"<leader>db",
function() require("persistent-breakpoints.api").toggle_breakpoint() end,
{ silent = true },
desc = "Toggle Breakpoint",
},
{
"<leader>dB",
function() require("persistent-breakpoints.api").clear_all_breakpoints() end,
{ silent = true },
desc = "Clear Breakpoints",
},
{
"<leader>dC",
function() require("persistent-breakpoints.api").set_conditional_breakpoint() end,
{ silent = true },
desc = "Conditional Breakpoint",
},
},
}

0 comments on commit b6adff4

Please sign in to comment.