Skip to content

Commit

Permalink
feat(debugging): add persistent-breakpoints.nvim
Browse files Browse the repository at this point in the history
  • Loading branch information
jay-babu committed Jun 7, 2023
1 parent 4886b2b commit a2bfffa
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>dB",
function() require("persistent-breakpoints.api").set_conditional_breakpoint() end,
{ silent = true },
desc = "Conditional Breakpoint",
},
},
}

0 comments on commit a2bfffa

Please sign in to comment.