From f16d8acf0b91af1b1e0765c63fba5ac558d29463 Mon Sep 17 00:00:00 2001 From: Stefan Huber Date: Mon, 20 Dec 2021 09:38:04 +0100 Subject: [PATCH] init: Fix vimtex deoplete integration --- init-plugins-noroot-nolowendbox.vim | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/init-plugins-noroot-nolowendbox.vim b/init-plugins-noroot-nolowendbox.vim index 227da01..5229b91 100644 --- a/init-plugins-noroot-nolowendbox.vim +++ b/init-plugins-noroot-nolowendbox.vim @@ -82,9 +82,8 @@ let s:normal_mode_mappings = [ \ ] " Have deoplete completion for vimtex (e.g., bibtex entries) -call deoplete#custom#var('omni', 'input_patterns', { - \ 'tex': g:vimtex#re#deoplete - \}) +au Filetype tex call deoplete#custom#var('omni', 'input_patterns', { + \ 'tex': g:vimtex#re#deoplete }) if has('nvim-0.5') set foldexpr=nvim_treesitter#foldexpr() -- 2.30.2