codota / tabnine-vim

Vim client for TabNine. https://vimawesome.com/plugin/tabnine-vim
https://www.tabnine.com/install/vim
GNU General Public License v3.0
669 stars 36 forks source link

Conflict with auto-pairs plugins in Vim #53

Closed kantuin closed 3 years ago

kantuin commented 5 years ago

Screencast-from-08-09-2019-10_31_02-PM

This may be difficult problem to solve...

gary-ruizhang commented 5 years ago

What auto-pairs does is something like: inoremap ( ()\<left>, so there would be a ) after your cursor. And autocompletion only depends on what you enter before the cursor.

Shougo commented 5 years ago

I have tested TabNine's output. TabNine seems ignore ) for old_suffix.

I think TabNine should set old_suffix as ).

Shougo commented 5 years ago

And autocompletion only depends on what you enter before the cursor.

Current TabNine checks the after of the cursor. So it can be implemented by TabNine.