~kota/wiki-ft.vim

e170bd363d6d22763aeaf0fe57b33d7eb6debd88 — Dakota Walsh 3 months ago 9ec572b master
change default text object binds

I've remapped the default binds to aC and iC in order to avoid collision
with the comment text object often used with treesitter.
1 files changed, 4 insertions(+), 4 deletions(-)

M ftplugin/wiki.vim
M ftplugin/wiki.vim => ftplugin/wiki.vim +4 -4
@@ 34,10 34,10 @@ onoremap <buffer> <plug>(wiki-ic) :call wiki_ft#text_obj#code(1, 0)<cr>
xnoremap <buffer> <plug>(wiki-ic) :<c-u>call wiki_ft#text_obj#code(1, 1)<cr>

let s:mappings = {
      \ 'o_<plug>(wiki-ac)' : 'ac',
      \ 'x_<plug>(wiki-ac)' : 'ac',
      \ 'o_<plug>(wiki-ic)' : 'ic',
      \ 'x_<plug>(wiki-ic)' : 'ic',
      \ 'o_<plug>(wiki-ac)' : 'aC',
      \ 'x_<plug>(wiki-ac)' : 'aC',
      \ 'o_<plug>(wiki-ic)' : 'iC',
      \ 'x_<plug>(wiki-ic)' : 'iC',
      \}

call wiki#init#apply_mappings_from_dict(s:mappings, '<buffer>')