From b0e55a6e600b166413b62cb6ca0833ca8980d8cd Mon Sep 17 00:00:00 2001 From: Sanchayan Maity Date: Mon, 7 Nov 2022 15:47:01 +0530 Subject: [PATCH] nvim: after/plugin/word-column: Fix conflicting mapping with target MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Since we now have more mapping available after dropping treesitter text objects, we can fix this. Fixes the below warning from targets check health. targets: health#targets#check ======================================================================== - WARNING: Conflicting mapping found: aq → (textobj-wordcolumn-word-a) q → {'quote': [{'d': ''''}, {'d': '"'}, {'d': '`'}]} - WARNING: Conflicting mapping found: iq → (textobj-wordcolumn-word-i) q → {'quote': [{'d': ''''}, {'d': '"'}, {'d': '`'}]} --- nvim/.config/nvim/after/plugin/word-column.vim | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/nvim/.config/nvim/after/plugin/word-column.vim b/nvim/.config/nvim/after/plugin/word-column.vim index 7bf6edb..4a5d85c 100644 --- a/nvim/.config/nvim/after/plugin/word-column.vim +++ b/nvim/.config/nvim/after/plugin/word-column.vim @@ -1,10 +1,10 @@ call textobj#user#map('wordcolumn', { \ 'word' : { - \ 'select-i' : 'iq', - \ 'select-a' : 'aq', + \ 'select-i' : 'is', + \ 'select-a' : 'as', \ }, \ 'WORD' : { - \ 'select-i' : 'iQ', - \ 'select-a' : 'aQ', + \ 'select-i' : 'iS', + \ 'select-a' : 'aS', \ }, \ })