Skip to content

aca/completion-tabnine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

completion-tabnine

A TabNine completion source for completion-nvim

capture

Install

  • vim-plug

    Plug 'aca/completion-tabnine', { 'do': './install.sh' }
    

    If you want to use specific version of tabnine

    Plug 'aca/completion-tabnine', { 'do': 'version=3.1.9 ./install.sh' }
    

Configuration

  • vimrc
    " vimrc
    let g:completion_chain_complete_list = {
        \ 'default': [
        \    {'complete_items': ['lsp', 'snippet', 'tabnine' ]},
        \    {'mode': '<c-p>'},
        \    {'mode': '<c-n>'}
        \]
    \}
    
  • options
    " tabnine priority (default: 0)
    " Defaults to lowest priority
    let g:completion_tabnine_priority = 0
    
    " tabnine binary path (default: expand("<sfile>:p:h:h") .. "/binaries/TabNine_Linux")
    let g:completion_tabnine_tabnine_path = ""
    
    " max tabnine completion options(default: 7)
    let g:completion_tabnine_max_num_results=7
    
    " sort by tabnine score (default: 0)
    let g:completion_tabnine_sort_by_details=1
    
    " max line for tabnine input(default: 1000)
    " from current line -1000 ~ +1000 lines is passed as input
    let g:completion_tabnine_max_lines=1000
    

TODO

Any help would be greatly appreciated!

  • Scoring based on "TabNine score"
  • Configuration
  • Truncate string to avoid tabnine limit
  • Vimdoc
  • Error Handling

About

A TabNine completion source for completion-nvim.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published