neoclide / coc-pairs

Basic auto pairs extension of coc.nvim

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Option for disable feature: Inserting characters instead of paired character when the previous content ends with two inserting characters

linhusp opened this issue · comments

Whenever I call a variable that its length is greater than 2 inside a pair (like when passing variable into a function call), I can't get out of the pair without hit <CR>, although I havent touched the auto completion yet.

The reason is some variables are too short and hiting <TAB> and auto complete and then <CR> is slower than typing myself. I want it always check for jumping out of the pair.

Vscode behavior:
Peek 2019-12-18 04-35

coc-nvim:
Peek 2019-12-18 04-31

  inoremap <expr><C-e> pumvisible() ? "\<C-e>" : "\<End>"