From 8c6b1211f66bd063361b73254ea5422fc5e68054 Mon Sep 17 00:00:00 2001 From: Ariel D'Alessandro Date: Wed, 19 Apr 2023 09:08:49 +0200 Subject: feat: fold map. enable incremental search --- lua/config/keymaps.lua | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lua/config/keymaps.lua') diff --git a/lua/config/keymaps.lua b/lua/config/keymaps.lua index 39831ed..f5c0248 100644 --- a/lua/config/keymaps.lua +++ b/lua/config/keymaps.lua @@ -8,6 +8,10 @@ end, { desc = "Special paste, paste without replacing copy register content" }) map("n", "bd", ":bd!", { desc = "Deletes the current buffer" }) +map("n", "fz", function () + vim.cmd [[normal zfaf]] +end, { desc = "Fold the function" }) + -- lists navigation map("n", "", ":cnextzz", { desc = "Goes to the next item in the quickfixlist and center to the screen" }) map("n", "", ":cprevzz", { desc = "Goes to the previous item in the quickfixlist and center to the screen" }) -- cgit v1.2.3