codota / TabNine

AI Code Completions
https://tabnine.com
MIT License
10.61k stars 499 forks source link

Fast flickering in gvim #67

Closed davidnash closed 5 years ago

davidnash commented 5 years ago

Occasionally when using the vim plugin TabNine kind of "freaks out" and the suggestion list flickers - as if it's reloading the suggestions in an infinite loop.

This happens when I'm editing a line (ie there's characters after the suggestion box):

Peek 2019-04-09 10-36

The flickering occurs much faster than the GIF frame rate, but this should give you an idea.

(Also - this is such an awesome plugin! I absolutely love it!)

Shougo commented 5 years ago

Hm.. It seems YCM problem. You can try deoplete-tabnine instead. https://github.com/tbodt/deoplete-tabnine

davidnash commented 5 years ago

Thanks for the quick response.

Though I'd prefer not to use deoplete - I'm on vim8 and one of the dependancies is marked "experimental".

zxqfl commented 5 years ago

Do you have any custom YCM settings enabled?

davidnash commented 5 years ago

I don't - in fact I wasn't even aware TabNine used YCM, until @Shougo suggested using deoplete.

I'm going to try disabling all my other plugins just to see what happens - I'll let you know.

davidnash commented 5 years ago

Okay, it took a while to track down, but the issue occurs when TabNine is used in combination with vim-matchup.

I'm going to leave vim-matchup disabled for now. TabNine is much more valuable to me. I'm constantly impressed by how good its suggestions are.

zxqfl commented 5 years ago

I'm glad to hear it! Thanks for investigating -- I'll keep this in mind in case anyone else encounters the same issue.