From 9b4fbc5021551188965d7cba54874fd1496d6ed2 Mon Sep 17 00:00:00 2001 From: orip Date: Sat, 18 Apr 2026 13:19:06 +0300 Subject: [PATCH] Fix conflicts between built-in incremental selection and mini.ai keymaps closes #1996 closes #1992 --- init.lua | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/init.lua b/init.lua index 600258d..1372720 100644 --- a/init.lua +++ b/init.lua @@ -845,9 +845,16 @@ require('lazy').setup({ -- -- Examples: -- - va) - [V]isually select [A]round [)]paren - -- - yinq - [Y]ank [I]nside [N]ext [Q]uote + -- - yinq - [Y]ank [I]nside [I]next [Q]uote -- - ci' - [C]hange [I]nside [']quote - require('mini.ai').setup { n_lines = 500 } + require('mini.ai').setup { + -- NOTE: Avoid conflicts with the built-in incremental selection mappings on Neovim>=0.12 (see `:help treesitter-incremental-selection`) + mappings = { + around_next = 'aa', + inside_next = 'ii', + }, + n_lines = 500, + } -- Add/delete/replace surroundings (brackets, quotes, etc.) --