You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 30, 2021. It is now read-only.
returnrequire("packer").startup(
function(use)
use "hrsh7th/nvim-compe"--completion
use {'tzachar/compe-tabnine', run='./install.sh', requires ='hrsh7th/nvim-compe'}
end
)
And later, enable the plugin:
letg:compe.source.tabnine =v:true
Or, to set some options:
letg:compe.source.tabnine = {}
letg:compe.source.tabnine.max_line =1000letg:compe.source.tabnine.max_num_results =6letg:compe.source.tabnine.priority =5000" setting sort to false means compe will leave tabnine to sort the completion itemsletg:compe.source.tabnine.sort=v:falseletg:compe.source.tabnine.show_prediction_strength =v:trueletg:compe.source.tabnine.ignore_pattern =''
Completion Behavior
In general, as TabNine is a predictive completion engine, you would normally
want TabNine to suggest completions after every keypress. In some instances this
may be either prohibitive or annoying. To work around it, you can use the
ignore_pattern config option.
ignore_pattern is an RE specifying when not to suggest completions based on the character
before the cursor. For example, to not fire completions after an opening
bracket, set ignore_pattern = '[(]'. To disable this functionality, leave it
empty or set to an empty string.
Packer Issues
Sometimes, Packer fails to install the plugin (though cloning the repo
succeeds). Until this is resolved, perform the following:
cd .local/share/nvim/site/pack/packer/start/compe-tabnine
./install.sh
Change .local/share/nvim/site/pack/packer/start/compe-tabnine to the path
Packer installs packages in your setup.