Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extra angle bracket when auto completing. #61

Open
pkradiator opened this issue Aug 20, 2024 · 0 comments
Open

Extra angle bracket when auto completing. #61

pkradiator opened this issue Aug 20, 2024 · 0 comments

Comments

@pkradiator
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant