nvim: after/plugin/word-column: Change default mappings for textobj-word-column

We want to use vim-textobj-comment and hence need to make the ac mapping
available.
This commit is contained in:
Sanchayan Maity 2022-02-05 09:23:41 +05:30
parent 8b424a2533
commit 819494b4bb
2 changed files with 13 additions and 0 deletions

View file

@ -0,0 +1,10 @@
call textobj#user#map('wordcolumn', {
\ 'word' : {
\ 'select-i' : 'iq',
\ 'select-a' : 'aq',
\ },
\ 'WORD' : {
\ 'select-i' : 'iQ',
\ 'select-a' : 'aQ',
\ },
\ })

View file

@ -76,6 +76,9 @@ vim.g.dispatch_no_maps = 1
vim.g.matchup_matchparen_offscreen = {}
vim.g.matchup_surround_enabled = 1
-- textobj-word-column
vim.g.textobj_wordcolumn_no_default_key_mappings = 1
-- We do this to prevent the loading of the system fzf.vim plugin. This is
-- present at least on Arch/Manjaro
vim.api.nvim_command('set rtp-=/usr/share/vim/vimfiles')