dotfiles/nvim/.config/nvim/after/plugin/word-column.vim
Sanchayan Maity b0e55a6e60 nvim: after/plugin/word-column: Fix conflicting mapping with target
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 → <Plug>(textobj-wordcolumn-word-a)
    q → {'quote': [{'d': ''''}, {'d': '"'}, {'d': '`'}]}
  - WARNING: Conflicting mapping found:
    iq → <Plug>(textobj-wordcolumn-word-i)
    q → {'quote': [{'d': ''''}, {'d': '"'}, {'d': '`'}]}
2022-11-24 14:21:49 +05:30

11 lines
193 B
VimL

call textobj#user#map('wordcolumn', {
\ 'word' : {
\ 'select-i' : 'is',
\ 'select-a' : 'as',
\ },
\ 'WORD' : {
\ 'select-i' : 'iS',
\ 'select-a' : 'aS',
\ },
\ })