Buffer source for ddc.vim
This source collects keywords from current buffer, buffers whose window is in the same tabpage and buffers which has the same filetype.
https://github.com/vim-denops/denops.vim
https://github.com/Shougo/ddc.vim
For detail, please see help.
call ddc#custom#patch_global('sources', ['buffer'])
call ddc#custom#patch_global('sourceOptions', {
\ '_': {'matchers': ['matcher_head']},
\ 'buffer': {'mark': 'B'},
\ })
call ddc#custom#patch_global('sourceParams', {
\ 'buffer': {
\ 'requireSameFiletype': v:false,
\ 'limitBytes': 5000000,
\ 'fromAltBuf': v:true,
\ 'forceCollect': v:true,
\ },
\ })