neoclide / coc-pairs

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

Duplicate right brace `{}}` when type `{}` #58

Closed linrongbin16 closed 4 years ago

linrongbin16 commented 4 years ago

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 [].

chemzqm commented 4 years ago

Try minimal vimrc.