fix: move breakpoint keys to <leader> prefix to avoid clobbering x/X/D

This commit is contained in:
swaits committed 2026-04-11 19:11:11 -06:00
1 parent a4aed1822c
commit 94eef8eaca
4 files changed
+23 -15

No files matched your search

+4 -4
View File
@@ -2,11 +2,11 @@ local assert_eq = require("helpers").assert_eq
local td = require("tiny-debugger")
td.setup()
-- global x mapping exists
assert_eq(vim.fn.maparg("x", "n", false, true).desc, "tiny-debugger: toggle breakpoint", "global x mapping")
-- global <leader>x mapping exists
assert_eq(vim.fn.maparg("<leader>x", "n", false, true).desc, "tiny-debugger: toggle breakpoint", "global <leader>x mapping")
-- global X mapping exists
assert_eq(vim.fn.maparg("X", "n", false, true).desc, "tiny-debugger: conditional breakpoint", "global X mapping")
-- global <leader>X mapping exists
assert_eq(vim.fn.maparg("<leader>X", "n", false, true).desc, "tiny-debugger: conditional breakpoint", "global <leader>X mapping")
-- persistent-breakpoints API is callable
local api = require("persistent-breakpoints.api")