Skip to content

Commit 9b4fbc5

Browse files
committed
Fix conflicts between built-in incremental selection and mini.ai keymaps
closes #1996 closes #1992
1 parent f5b0e49 commit 9b4fbc5

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

init.lua

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -845,9 +845,16 @@ require('lazy').setup({
845845
--
846846
-- Examples:
847847
-- - va) - [V]isually select [A]round [)]paren
848-
-- - yinq - [Y]ank [I]nside [N]ext [Q]uote
848+
-- - yinq - [Y]ank [I]nside [I]next [Q]uote
849849
-- - ci' - [C]hange [I]nside [']quote
850-
require('mini.ai').setup { n_lines = 500 }
850+
require('mini.ai').setup {
851+
-- NOTE: Avoid conflicts with the built-in incremental selection mappings on Neovim>=0.12 (see `:help treesitter-incremental-selection`)
852+
mappings = {
853+
around_next = 'aa',
854+
inside_next = 'ii',
855+
},
856+
n_lines = 500,
857+
}
851858

852859
-- Add/delete/replace surroundings (brackets, quotes, etc.)
853860
--

0 commit comments

Comments
 (0)