Duplicate right brace `{}}` when type `{}`
linrongbin16 opened this issue · comments
linrongbin16 commented
Software
In MacOS, install the newest macvim/python3/node with homebrew. Then install coc.nvim and coc-pairs.
minimum vimrc
Use vim-plug as plugin manager.
Here's .vimrc
:
source ~/.vim/autoload/plug.vim
call plug#begin('~/.vim/plugged')
Plug 'neoclide/coc.nvim', {'branch': 'release'}
call plug#end()
Just install :CocInstall coc-pairs
.
Description
When I type {}
, coc-pairs give me one more duplicate {}}
.
When I type []
, coc-pairs give me one more duplicate []]
.
When I type ""
, coc-pairs give me just ""
.
When I type ''
, coc-pairs give me just ''
.
When I type ()
, coc-pairs give me just ()
.
Expect Behaviour
When I type {}
, coc-pairs give me just {}
.
When I type []
, coc-pairs give me just []
.
Qiming zhao commented
Try minimal vimrc.