neoclide / coc-pairs

Basic auto pairs extension of coc.nvim
295 stars 14 forks source link

Using parentheses after insert mode abbreviations will not trigger the abbreviation #55

Open againxx opened 4 years ago

againxx commented 4 years ago

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.

chemzqm commented 4 years ago

Don't know how to fix.

AeolusLau commented 1 year ago

Got the same problem...

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

chemzqm commented 1 year ago

Tried to feed CTRL-], but not work.

AeolusLau commented 1 year ago

Sad...