Closed p00f closed 4 years ago
ps that was indeed a tabnine completion, not visible in the gui
here's one from a terminal https://imgur.com/tYr0ECs
Weird. Can not reproduce.
before
after
Can you show me the completion-nvim configuration?
let g:completion_chain_complete_list = {
\ 'default': [
\ {'complete_items': ['tabnine', 'lsp', 'snippet']},
\ {'mode': '<c-p>'},
\ {'mode': '<c-n>'}
\]
\}
let g:completion_tabnine_sort_by_defaults=1
let g:completion_enable_snippet = 'vim-vsnip'
Hey I found this in :checkhealth
health#completion_nvim#check
========================================================================
- ERROR: Failed to run healthcheck for "completion_nvim" plugin. Exception:
function health#check[21]..health#completion_nvim#check, line 1
Vim(lua):E5108: Error executing lua ...tart/completion-nvim/lua/completion/chain_completion.lua:61: attempt to index local 'syntax_regex' (a number value)
@p00f that's not an issue of this plugin but for nvim-lua/completion_nvim. I will check any related issue later.
Here is minimal vimrc. Could you try with this? I still can't reproduce the issue.
call plug#begin(expand('~/src/github.com/aca/plugged')) " change this to your plug directory
Plug 'neovim/nvim-lsp'
Plug 'nvim-lua/completion-nvim'
Plug 'aca/completion-tabnine' , { 'do': './install.sh' }
call plug#end()
set updatetime=300
set completeopt=menuone,noinsert,noselect
set shortmess+=cF
let g:completion_matching_strategy_list = ['fuzzy', 'exact', 'substring']
let g:completion_chain_complete_list = {
\ 'default': [
\ {'complete_items': ['tabnine']},
\ {'mode': '<c-p>'},
\ {'mode': '<c-n>'}
\]
\}
let g:completion_enable_auto_popup = 1
let g:completion_timer_cycle = 80
function! s:check_back_space() abort
let col = col('.') - 1
return !col || getline('.')[col - 1] =~# '\s'
endfunction
inoremap <expr> <Tab> pumvisible() ? "\<C-n>" : "\<Tab>"
inoremap <expr> <S-Tab> pumvisible() ? "\<C-p>" : "\<S-Tab>"
let g:completion_matching_ignore_case = 1
inoremap <silent><expr> <TAB>
\ pumvisible() ? "\<C-n>" :
\ <SID>check_back_space() ? "\<TAB>" :
\ completion#trigger_completion()
let g:completion_confirm_key = ""
imap <expr> <cr> pumvisible() ? complete_info()["selected"] != "-1" ?
\ "\<Plug>(completion_confirm_completion)" : "\<c-e>\<CR>" : "\<CR>"
autocmd BufEnter * lua require'completion'.on_attach()
I can't reproduce with this minimal vimrc, I'll try to find the problem
This fixed itself idk how
Sorry, i don't know how to word this, please see https://imgur.com/fMx4RSp