Closed wanaiqing closed 1 year ago
What's the output of
imap <cr>
imap <SNR>1234_AutoPairsOldCRWrapper1234
where 1234
is replaced with the numbers you see in imap <cr>
?
What's the output of
imap <cr> imap <SNR>1234_AutoPairsOldCRWrapper1234
where
1234
is replaced with the numbers you see inimap <cr>
?
the output of "imap \
the output of "imap \
Finally reproduced it. Looks like both SNRs are invoked, which sounds like the most plausible explanation.
You'll have to
let g:AutoPairsMapCR = 0
inoremap <silent><expr> <cr> coc#pum#visible() ? coc#_select_confirm() : "\<C-g>u\<CR><C-r>=AutoPairsReturn()\<cr>"
Finally reproduced it. Looks like both SNRs are invoked, which sounds like the most plausible explanation.
You'll have to
let g:AutoPairsMapCR = 0 inoremap <silent><expr> <cr> coc#pum#visible() ? coc#_select_confirm() : "\<C-g>u\<CR><C-r>=AutoPairsReturn()\<cr>"
Great! It's gone.
Thanks. @LunarWatcher
@LunarWatcher Thank you very much. I had this issue as well.
Auto-completion was messed up in certain situation, tested with minimal configuration in docker.
.vimrc vimrc.txt
screen record
https://user-images.githubusercontent.com/20230818/216559910-8af712e2-1702-4927-94ac-f958abcca031.mp4