Autocomplete text not inserted into the buffer
lukepass opened this issue · comments
:h coc-config-suggest-invalidInsertCharacters
or confirm completion.
I see, so I should set this variable to ""
or "("
as indicated here:
neoclide/coc.nvim#3543
neoclide/coc.nvim#3566
Is there a way to configure invalidInsertCharacters only for the tabnine autocomplete? Something like
"tabnine": {
"suggest.invalidInsertCharacters" : ["("]
}
Thanks.
No, confirm completion is recommended.
Ok, thanks! My current Ctrl-Y is mapped to emmet and other things and so accepting with Ctrl-Y is not available. Di you know how can I remap it to accept the entry?
Thanks again!
That's it! For all the people who have the same problem this is the relevant part:
inoremap <expr> <cr> pumvisible() ? "\<C-y>" : "\<C-g>u\<CR>"
If you want to complete the whole line just add this to the coc.nvim config:
"suggest.invalidInsertCharacters" : ["("]
@chemzqm I already read the wiki but many days before having this problem :)
Thanks.