fix: move breakpoint keys to <leader> prefix to avoid clobbering x/X/D
This commit is contained in:
4 files changed
+23
-15
No files matched your search
@@ -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")
|
||||
|
||||
Reference in new issue
Block a user