neoclide / coc-tabnine

Tabnine integration of coc.nvim
468 stars 18 forks source link

Tabnine gives only 2 suggestions #86

Closed mateusz28 closed 1 year ago

mateusz28 commented 1 year ago

Hi, after some configuration I've successfully integrated coc-tabinine with tabnine pro into my neovim setup. It works pretty fine but I've encountered some limitations. Suggestion popup shows only 2 options. It doesn't matter if it is multi-line suggestion or inline variable proposition. I always see only 2 options with tabnine ([TN]) tag. Other completion engines return multiple options as visible on a screens. Is there any limit to be configured in coc or coc-tabnine configuration? Screenshot_20230330_172635 My config: Screenshot_20230330_172917

mateusz28 commented 1 year ago

This is related to tabnine engine. For some files like *.sh it returns multiple suggestions (up to max_num_results parameter in request). For other like .c and .go it always returns 2 or 1 suggestion. Official tabnine neovim plugin has max_num_results value fixed and it equals 1.