Omni completion source for asyncomplete.vim
Plug 'prabirshrestha/asyncomplete.vim'
Plug 'yami-beta/asyncomplete-omni.vim'
call asyncomplete#register_source(asyncomplete#sources#omni#get_source_options({
\ 'name': 'omni',
\ 'whitelist': ['*'],
\ 'blacklist': ['html'],
\ 'completor': function('asyncomplete#sources#omni#completor')
\ }))
If omnifunc
change cursor position, asyncomplete-omni.vim
does not work correctly.
For example, HTML is blacklisted above because Vim's default omnifunc
repositions the cursor leading to quirky behaviour. You can reenable if you are using a more appropriate omnifunc
.
rubycomplete#Complete