Skip to content

Commit 4eb527a

Browse files
oriori1703dribic
authored andcommitted
Fix conflicts between built-in incremental selection and mini.ai keymaps
closes nvim-lua#1996 closes nvim-lua#1992 Signed-off-by: Dejan Ribič <[email protected]>
1 parent af8d81c commit 4eb527a

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
@@ -858,9 +858,16 @@ require('lazy').setup({
858858
--
859859
-- Examples:
860860
-- - va) - [V]isually select [A]round [)]paren
861-
-- - yinq - [Y]ank [I]nside [N]ext [Q]uote
861+
-- - yinq - [Y]ank [I]nside [I]next [Q]uote
862862
-- - ci' - [C]hange [I]nside [']quote
863-
require('mini.ai').setup { n_lines = 500 }
863+
require('mini.ai').setup {
864+
-- NOTE: Avoid conflicts with the built-in incremental selection mappings on Neovim>=0.12 (see `:help treesitter-incremental-selection`)
865+
mappings = {
866+
around_next = 'aa',
867+
inside_next = 'ii',
868+
},
869+
n_lines = 500,
870+
}
864871

865872
-- Add/delete/replace surroundings (brackets, quotes, etc.)
866873
--

0 commit comments

Comments
 (0)