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:
@@ -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,
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user