Asynchronous completion for OCaml in vim or neovim using merlin and deoplete.
Status: Experimental, but working well in practice.
- merlin
- deoplete (see requirements)
" enable deoplete
let g:deoplete#enable_at_startup = 1
" this is the default, make sure it is not set to "omnifunc" somewhere else in your vimrc
let g:deoplete#complete_method = "complete"
" other completion sources suggested to disable
call deoplete#custom#option('ignore_sources', {})
call deoplete#custom#option('ignore_sources.ocaml', ['buffer', 'around', 'member', 'tag'])
" no delay before completion
call deoplete#custom#option('auto_complete_delay', 0)