diff --git a/lua/mappings.lua b/lua/mappings.lua index 2f8a08d..41b2406 100644 --- a/lua/mappings.lua +++ b/lua/mappings.lua @@ -30,10 +30,14 @@ keymap({ "n", "v" }, "y", '"+y', { noremap = true, silent = true, desc = keymap({ "n", "v" }, "Y", '"+yg_', { noremap = true, silent = true, desc = "[Y]ank line to system clipboard" }) keymap({ "n", "v" }, "p", '"+p', { noremap = true, silent = true, desc = "[P]ast from system clipboard" }) +--[[ Folds ]] -- z0…z9 to open folds to a certain level for i = 0, 9 do keymap('n', 'z' .. i, ':set fdl=' .. i .. '', { noremap = true, silent = false }) end +-- tab for folds management +keymap('n', '', 'za', {noremap= true, silent = true, desc = 'Toggle open folds'}) +keymap('n', '', 'zA', {noremap= true, silent = true, desc = 'Toggle open all folds'}) -- in :terminal esc exits edit mode keymap('t', '', '', { noremap = true, silent = true })