Skip to content

Extra angle bracket when auto completing. #61

@pkradiator

Description

@pkradiator

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>"

output.mp4

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions