diff --git a/autoload/vimtex/complete.vim b/autoload/vimtex/complete.vim index 1c3642b..2613f4a 100644 --- a/autoload/vimtex/complete.vim +++ b/autoload/vimtex/complete.vim @@ -40,7 +40,7 @@ function! vimtex#complete#omnifunc(findstart, base) " {{{1 let l:pos = col('.') - 1 let l:line = getline('.')[:l:pos-1] for l:completer in s:completers - if !get(l:completer, 'enabled', 0) | return -3 | endif + if !get(l:completer, 'enabled', 1) | continue | endif for l:pattern in l:completer.patterns if l:line =~# l:pattern @@ -72,7 +72,6 @@ endfunction let s:bib = { \ 'patterns' : ['\v\\\a*cite\a*%(\s*\[[^]]*\]){0,2}\s*\{[^}]*$'], - \ 'enabled' : 1, \ 'bibs' : '''\v%(%(\\@