neoclide / coc-pairs

Basic auto pairs extension of coc.nvim

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Using parentheses after insert mode abbreviations will not trigger the abbreviation

againxx opened this issue · comments

commented

I set iabbrev pritn print in my vimrc, but the abbreviation didn't expand after I typed pritn(.

In Learn Vimscript the Hard Way, the author says that

Vim will substitute an abbreviation when you type any "non-keyword character" after an abbreviation.

Other non-keyword characters work fine, such as ,. Like the discussion in https://vi.stackexchange.com/questions/10649/expand-abbreviation-when-the-following-non-keyword-character-is-mapped-to-someth, the problem seems to lay in the mapping.

Don't know how to fix.

commented

Got the same problem...

@chemzqm Is it possible and acceptable to always trigger a CTRL-] before coc-pairs handle its key characters?

Tried to feed CTRL-], but not work.

commented

Sad...