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:
parent
eaec90379d
commit
270edf13b1
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue