nvim: Fix completion sourcing for pandoc files

Fixed source completion, so it automatically changes to turn source
switching *off* for pandoc files (to not automatically invoke bibcite
generation), and *on* for the rest of files.

This was accidentally switched the wrong way round before.
This commit is contained in:
Marty Oehme 2020-10-05 09:31:27 +02:00
parent eaec90379d
commit 270edf13b1
Signed by: Marty
GPG key ID: B7538B8F50A1C800

View file

@ -39,10 +39,10 @@ augroup pandocCompletion
augroup end augroup end
fun! SetupPandocCompletion() fun! SetupPandocCompletion()
if &ft =~ 'pandoc' if &ft =~ 'pandoc'
let g:completion_auto_change_source = 1 let g:completion_auto_change_source = 0
return return
endif endif
let g:completion_auto_change_source = 0 let g:completion_auto_change_source = 1
endfun endfun
" the completion chains for different filetypes " the completion chains for different filetypes