1
0
mirror of https://github.com/pratiktri/dotfiles.git synced 2026-05-07 03:53:41 +05:30

fix(neovim): Use default keymaps for incremental selection

- Remove `mini.ai`: conflicts with `an`, `in` incremental selection defaults
- Remove old keymaps
This commit is contained in:
Pratik Tripathy
2026-04-21 15:11:18 +05:30
parent 7828f4de3f
commit 288a93e253
2 changed files with 6 additions and 6 deletions
@@ -285,11 +285,12 @@ return {
})
-- Incremental selection is NATIVE in 0.12 (no plugin config)
-- 0.12 defaults: gnn (init), grn (expand node), grm (shrink), grc (scope)
-- Remap to your existing keys:
vim.keymap.set("n", "<C-space>", "gnn", { remap = true, desc = "Init treesitter selection" })
vim.keymap.set("x", "<C-CR>", "grc", { remap = true, desc = "Expand scope selection" })
vim.keymap.set("x", "<bs>", "grm", { remap = true, desc = "Shrink node selection" })
-- 0.12 defaults:
-- v:
-- an (expand out)
-- in (shrink in)
-- ]n (next sibling)
-- [n (previous sibling)
end,
},