completion-nvim icon indicating copy to clipboard operation
completion-nvim copied to clipboard

Some typed chars are not used when filtering completions.

Open doubleloop opened this issue 5 years ago • 3 comments

My testing minimal init.vim

call plug#begin('~/.local/share/nvim/plugged') 
    Plug 'neovim/nvim-lsp'
    Plug 'haorenW1025/completion-nvim'
call plug#end()
lua require'nvim_lsp'.pyls.setup{on_attach=require'completion'.on_attach}
set completeopt=menuone,noinsert,noselect

How to reproduce This is timing issue. Open some python file, enter insert mode and start typing pr. If you type it fast enough you end up with completions for p instead of pr (it stays that way until you for example remove r and type it again). Screenshot from 2020-05-21 15-06-36

If you type slow enough it works as expected. Screenshot from 2020-05-21 15-11-25

Expected behavior All typed characters should be used for filtering completions.

doubleloop avatar May 21 '20 13:05 doubleloop

Should be fixed, please update and check!

haorenW1025 avatar May 21 '20 14:05 haorenW1025

Updated but the issue still exists.

doubleloop avatar May 21 '20 16:05 doubleloop

I'm trying to resolve this today but this seems very weird... Might need some time to figure it out.

haorenW1025 avatar May 22 '20 12:05 haorenW1025