neoclide / coc-pairs

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

Backspace didn't work #73

Closed younger-1 closed 2 years ago

younger-1 commented 3 years ago

Expected bahavier: When press in inside pairs like (), [], {}, the paired bracket remove together. But didn't work like that with following minimal config:

The minimal vimrc:

call plug#begin('~/.cache/vim-plug')                                           
  Plug 'neoclide/coc.nvim', {'branch': 'release'}                              
call plug#end()                                                                

" Make <CR> notify coc.nvim to format on enter and make improvement of brackets
inoremap <silent><expr> <cr> pumvisible() ? coc#_select_confirm()              
                              \: "\<C-g>u\<CR>\<c-r>=coc#on_enter()\<CR>"     

My coc-settings:

{
    "pairs.enableBackspace": true,
}
chemzqm commented 2 years ago

Checkout result of :verbose imap <bs>