diff options
| author | Ariel D'Alessandro <dalessandro.ariel@gmail.com> | 2023-04-19 09:08:49 +0200 |
|---|---|---|
| committer | Ariel D'Alessandro <dalessandro.ariel@gmail.com> | 2023-04-19 09:09:20 +0200 |
| commit | 8c6b1211f66bd063361b73254ea5422fc5e68054 (patch) | |
| tree | 259791310461f2f10566fabb6f6b3f1bcb69b29c /lua/config | |
| parent | 82398740c1923ff566b401aeb7b23e497977d7db (diff) | |
| download | nvim-conf-8c6b1211f66bd063361b73254ea5422fc5e68054.tar.gz nvim-conf-8c6b1211f66bd063361b73254ea5422fc5e68054.zip | |
feat: fold map. enable incremental search
Diffstat (limited to 'lua/config')
| -rw-r--r-- | lua/config/keymaps.lua | 4 |
1 files changed, 4 insertions, 0 deletions
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", "<leader>bd", ":bd!<CR>", { desc = "Deletes the current buffer" }) +map("n", "<leader>fz", function () + vim.cmd [[normal zfaf]] +end, { desc = "Fold the function" }) + -- lists navigation map("n", "<C-j>", ":cnext<CR>zz", { desc = "Goes to the next item in the quickfixlist and center to the screen" }) map("n", "<C-k>", ":cprev<CR>zz", { desc = "Goes to the previous item in the quickfixlist and center to the screen" }) |