Omnifunc completion for ddc.vim
This source collects items from 'omnifunc'.
Note: It does not support all of 'omnifunc'.
https://github.com/vim-denops/denops.vim
https://github.com/Shougo/ddc.vim
call ddc#custom#patch_global('sources', ['omni'])
call ddc#custom#patch_global('sourceOptions', #{
\ omni: #{ mark: 'O' },
\ })
" Example: Use vimtex
"call vimtex#init()
"call ddc#custom#patch_filetype(['tex'], 'sourceOptions', #{
" \ omni: #{
" \ forceCompletionPattern: g:vimtex#re#deoplete,
" \ },
" \ })
"call ddc#custom#patch_filetype(['tex'], 'sourceParams', #{
" \ omni: #{ omnifunc: 'vimtex#complete#omnifunc' },
" \ })