From: Stefan Huber Date: Mon, 20 Dec 2021 08:38:04 +0000 (+0100) Subject: init: Fix vimtex deoplete integration X-Git-Url: https://git.sthu.org/?p=vimconf.git;a=commitdiff_plain;h=f16d8acf0b91af1b1e0765c63fba5ac558d29463 init: Fix vimtex deoplete integration --- 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()