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 | |
| parent | 82398740c1923ff566b401aeb7b23e497977d7db (diff) | |
| download | nvim-conf-8c6b1211f66bd063361b73254ea5422fc5e68054.tar.gz nvim-conf-8c6b1211f66bd063361b73254ea5422fc5e68054.zip | |
feat: fold map. enable incremental search
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/config/keymaps.lua | 4 | ||||
| -rw-r--r-- | lua/plugins/treesitter.lua | 2 |
2 files changed, 5 insertions, 1 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" }) 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", |