From 5b4da2ce4e9de364a748c85e8e9ed0b1d2519bd5 Mon Sep 17 00:00:00 2001 From: Kutsan Kaplan Date: Fri, 3 Jan 2025 01:25:35 +0300 Subject: [PATCH] feat(nvim): add to toggle folds --- .config/nvim/plugin/mappings/normal.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.config/nvim/plugin/mappings/normal.lua b/.config/nvim/plugin/mappings/normal.lua index fa32cc6b..0733c92c 100644 --- a/.config/nvim/plugin/mappings/normal.lua +++ b/.config/nvim/plugin/mappings/normal.lua @@ -2,6 +2,9 @@ local keymap = vim.keymap local cmd = vim.cmd local fn = vim.fn +-- Set to itself to support separate mappings for and . +keymap.set('n', '', '') + -- Quickly close current window. keymap.set('n', 'q', 'q') @@ -11,6 +14,9 @@ keymap.set('n', '', 'k') keymap.set('n', '', 'h') keymap.set('n', '', 'l') +-- Toggle folds. +keymap.set('n', '', 'za') + -- Always send contents of a `x` command to the black hole register. keymap.set('n', 'x', '"_x')