I would like to see a way of disabling deoplete completely for certain filetypes.
Given an option such as: let g:deoplete#disable_for_file_type = {.tex, .bib, ...}
" $HOME/.config/nvim/config/plugins.vimrc
" Invoke deoplete
let g:deoplete#enable_at_startup = 1
let g:deoplete#enable_smart_case = 1
let g:deoplete#disable_auto_complete = 0 " set to 1 if you want to disable autocomplete
autocmd InsertLeave,CompleteDone * if pumvisible() == 0 | pclose | endif
autocmd FileType tex let b:deoplete_disable_auto_complete = 1
For reference, from the FAQ in the docs:
The b:deoplete_disable_auto_complete var was removed and the new way of doing this is
Q: I want to disable the auto completion for certain filetypes.
A: Please use |deoplete-options-auto_complete|. >
autocmd FileType tex
\ call deoplete#custom#buffer_option('auto_complete', v:false)
Most helpful comment
For reference, from the FAQ in the docs:
The
b:deoplete_disable_auto_completevar was removed and the new way of doing this is