Skip to content

matsui54/ddc-source-buffer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

87 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ddc-buffer

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.

Required

denops.vim

https://github.com/vim-denops/denops.vim

ddc.vim

https://github.com/Shougo/ddc.vim

Configuration

For detail, please see help.

example

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,
    \ },
    \ })

About

Buffer source for ddc.vim

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published