Files
nvim-modular/lua/custom/keymaps/edit.lua
2025-08-11 03:50:33 +02:00

19 lines
426 B
Lua

-- Edition mappings
--
local status_wk, wk = pcall(require, 'which-key')
if not status_wk then
return
end
wk.add {
{
mode = { 'n', 'v', 'i' },
-- mapping runs here as which-key intercepts ctrl-z signal before term
{ '<C-z>', '<CMD>undo<CR>', desc = 'Undo', silent = true, noremap = true, hidden = true },
},
}
-- The line beneath this is called `modeline`. See `:help modeline`
-- vim: ts=2 sts=2 sw=2 et