ddc source for dictionary
https://github.com/vim-denops/denops.vim
https://github.com/Shougo/ddc.vim
For detail, please see help file.
" you need to set 'dictionary' option
setlocal dictionary+=/usr/share/dict/words
" or you can specify dictionary path using sourceParams ('dictPaths' must be list of files)
call ddc#custom#patch_global('sourceParams', {
\ 'dictionary': {'dictPaths':
\ ['/usr/share/dict/german',
\ '/usr/share/dict/words',
\ '/usr/share/dict/spanish'],
\ 'smartCase': v:true,
\ 'isVolatile': v:true,
\ }
\ })
call ddc#custom#patch_global('sources', ['dictionary'])
call ddc#custom#patch_global('sourceOptions', {
\ '_': {'matchers': ['matcher_head']},
\ 'dictionary': {'mark': 'D'},
\ })
https://github.com/deoplete-plugins/deoplete-dictionary