Skip to content

hotoolong/asyncomplete-tabnine.vim

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

asyncomplete-tabnine.vim

asyncomplete source for TabNine

Installation

For dein.vim

if has('win32') || has('win64')
  call dein#add('hotoolong/asyncomplete-tabnine.vim', { 'build': 'powershell.exe .\install.ps1'  })
else
  call dein#add('hotoolong/asyncomplete-tabnine.vim', { 'build': './install.sh'  })
endif

For vim-plug

if has('win32') || has('win64')
  Plug 'hotoolong/asyncomplete-tabnine.vim', { 'do': 'powershell.exe .\install.ps1' }
else
  Plug 'hotoolong/asyncomplete-tabnine.vim', { 'do': './install.sh' }
endif

Registration

  call asyncomplete#register_source(asyncomplete#sources#tabnine#get_source_options({
    \ 'name': 'tabnine',
    \ 'allowlist': ['*'],
    \ 'completor': function('asyncomplete#sources#tabnine#completor'),
    \ 'config': {
    \   'line_limit': 1000,
    \   'max_num_result': 20,
    \  },
    \ }))

line_limit (default: 1000)

The number of lines before and after the cursor to send to TabNine. If the option is smaller, the performance may be improved.

max_num_results (default: 10)

The max number of results from Tabnine.

Inspired

Copied install.sh and install.ps1 from this plugin.

Attention

This plugin only supports neovim. if you want to use it with vim, please refer to the fork source.

About

Experimental plugin for asyncomplete.vim and tabnine

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Vim Script 76.2%
  • PowerShell 16.3%
  • Shell 7.5%