Add a way to cache default keymaps, impl function for adding temporary

keymaps (i.e keymaps during debugging) which saves original keymaps if
it overrides them at restores them upon deletion.
This commit is contained in:
Martin Larsson 2025-01-13 12:08:07 +01:00
parent ec921c73a3
commit 9b3a9ece1e
2 changed files with 71 additions and 21 deletions

View file

@ -79,7 +79,7 @@ return {
local function enter_debug_mode()
dapui.open()
if not are_stepping_keymaps_active then
utils.add_keymaps(stepping_keymaps)
utils.add_temporary_keymaps(stepping_keymaps)
are_stepping_keymaps_active = true
end