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 ++++ lua/plugins/treesitter.lua | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) (limited to '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" }) diff --git a/lua/plugins/treesitter.lua b/lua/plugins/treesitter.lua index beede2b..a9818b4 100644 --- a/lua/plugins/treesitter.lua +++ b/lua/plugins/treesitter.lua @@ -39,7 +39,7 @@ return { enable = true, }, incremental_selection = { - enable = false, + enable = true, keymaps = { init_selection = "gnn", node_incremental = "grn", -- cgit v1.2.3