I have in .vim/after/plugin/
a file called deoplete.vim
Inside is this code
let g:deoplete#enable_at_startup = 1 " Enable autocompletion at startup
" Autocomplete Deoplete + Vimtex
call deoplete#custom#var('omni', 'input_patterns', {
\ 'tex': g:vimtex#re#deoplete
\})
The code let g:deoplete#enable_at_startup = 1
is not loaded, although :scriptnames
shows that the file is loaded. Also, :verbose set completeopt?
shows completeopt=menu,preview
.
If I source deoplete.vim
in .vimrc
the let g:deoplete#enable_at_startup = 1
is working.
If I remove let g:deoplete#enable_at_startup = 1
and put it in .vimrc
the rest of the code is working without sourcing the file.
What am I missing?
I'm trying to clean my .vimrc
file and put all the plugin config in .vim/after/plugin/
and all the filetype config to .vim/after/ftplugin/