Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/matsui54/ddc-source-buffer
Buffer source for ddc.vim
https://github.com/matsui54/ddc-source-buffer
ddc-source ddc-vim
Last synced: 3 months ago
JSON representation
Buffer source for ddc.vim
- Host: GitHub
- URL: https://github.com/matsui54/ddc-source-buffer
- Owner: matsui54
- License: mit
- Created: 2021-08-09T03:05:08.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-08-02T13:33:46.000Z (3 months ago)
- Last Synced: 2024-08-02T15:14:09.818Z (3 months ago)
- Topics: ddc-source, ddc-vim
- Language: TypeScript
- Homepage:
- Size: 47.9 KB
- Stars: 33
- Watchers: 1
- Forks: 8
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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](doc/ddc-buffer.txt).
### example
```vim
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,
\ },
\ })
```