Closed psprint closed 4 years ago
This extension doesn't control any select behavior, you should do your own mapping to the what you want.
Example https://github.com/iamcco/dotfiles/blob/master/nvim/viml/plugins.config/coc.nvim.vim#L89
Yes, I've noticed this and solved the issue. It was because of the official configuration snippet from Coc:
inoremap <expr> <cr> complete_info()["selected"] != "-1" ? "\<C-y>" : "\<C-g>u\<CR>"
Replacing the comple…ted"]
token with 1
yields a working single-match completing. The snippet that you've gave is an improvement — no new line is inserted on complete_info()
?
No idea, it works fine for me.
Describe the bug When I'm writing VimL I often encounter the following:
substi…(tute)
.substitute
function (or command, unsure).suggest.noselect ← false
).To Reproduce Steps to reproduce the behavior:
substitu…
untill there's only single completion candidate (single entry in the pum).suggest.noselect ← false
, then press an arrow key to select the single match.Expected behavior The single, selected/active candidate should be simply completed on Enter.
Screenshots If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Relevant CocOpenLog contents: