Skip to content

Commit 5abe19b

Browse files
oriori1703PaulFinch
authored andcommitted
Fix conflicts between built-in incremental selection and mini.ai keymaps
closes nvim-lua#1996 closes nvim-lua#1992
1 parent edfb294 commit 5abe19b

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

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

0 commit comments

Comments
 (0)