From 270edf13b11cd8ceda839d4372d3b4bb3ac3a77e Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Mon, 5 Oct 2020 09:31:27 +0200 Subject: [PATCH] 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. --- nvim/.config/nvim/plugin/completion-nvim.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nvim/.config/nvim/plugin/completion-nvim.vim b/nvim/.config/nvim/plugin/completion-nvim.vim index 4cafb23..201a0f4 100644 --- a/nvim/.config/nvim/plugin/completion-nvim.vim +++ b/nvim/.config/nvim/plugin/completion-nvim.vim @@ -39,10 +39,10 @@ augroup pandocCompletion augroup end fun! SetupPandocCompletion() if &ft =~ 'pandoc' - let g:completion_auto_change_source = 1 + let g:completion_auto_change_source = 0 return endif - let g:completion_auto_change_source = 0 + let g:completion_auto_change_source = 1 endfun " the completion chains for different filetypes