]> git.sthu.org Git - vimconf.git/commitdiff
init: Enable deoplete completion for vimtex
authorStefan Huber <shuber@sthu.org>
Sun, 19 Dec 2021 23:30:58 +0000 (00:30 +0100)
committerStefan Huber <shuber@sthu.org>
Sun, 19 Dec 2021 23:30:58 +0000 (00:30 +0100)
init-plugins-noroot-nolowendbox.vim

index eb48f8a5af6cb663477b03cd345652d3ddb38211..227da01d516f10d6b10b0e7f5e1682cb64528eed 100644 (file)
@@ -81,6 +81,10 @@ let s:normal_mode_mappings = [
             \ ['r', '<denite:redraw>', 'noremap'],
             \ ]
 
+" Have deoplete completion for vimtex (e.g., bibtex entries)
+call deoplete#custom#var('omni', 'input_patterns', {
+            \ 'tex': g:vimtex#re#deoplete
+            \})
 
 if has('nvim-0.5')
     set foldexpr=nvim_treesitter#foldexpr()