coc-html icon indicating copy to clipboard operation
coc-html copied to clipboard

Extra angle bracket when auto completing.

Open pkradiator opened this issue 6 months ago • 0 comments

When I use the following config, I get an extra starting angle bracket.

inoremap <silent><expr> <TAB> coc#pum#visible() ? coc#pum#next(1) : "\<TAB>"
inoremap <silent><expr> <S-TAB> coc#pum#visible() ? coc#pum#prev(1) : "\<S-TAB>"

https://github.com/user-attachments/assets/e18557cb-a3f9-46b1-a29f-fde9af884ac0

The workflow is as follows , first I type <ht and then get a suggestion for html so I hit tab which completes it to <html and then I hit enter and I get the total completion with an extra angle bracket. Also if I add this lines to my vimrc --

" Make <CR> to accept selected completion item or notify coc.nvim to format
" <C-g>u breaks current undo, please make your own choice
inoremap <silent><expr> <CR> coc#pum#visible() ? coc#pum#confirm()
                              \: "\<C-g>u\<CR>\<c-r>=coc#on_enter()\<CR>"

I don't get total completion after hitting enter but only completion till <html

pkradiator avatar Aug 20 '24 11:08 pkradiator