Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/prabirshrestha/asyncomplete-buffer.vim
provides buffer autocomplete for asyncomplete.vim
https://github.com/prabirshrestha/asyncomplete-buffer.vim
asyncomplete code-completion neovim vim
Last synced: 21 days ago
JSON representation
provides buffer autocomplete for asyncomplete.vim
- Host: GitHub
- URL: https://github.com/prabirshrestha/asyncomplete-buffer.vim
- Owner: prabirshrestha
- Created: 2017-01-29T02:10:08.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2023-12-03T03:53:57.000Z (11 months ago)
- Last Synced: 2024-10-06T15:02:04.648Z (about 1 month ago)
- Topics: asyncomplete, code-completion, neovim, vim
- Language: Vim Script
- Size: 8.79 KB
- Stars: 44
- Watchers: 3
- Forks: 15
- Open Issues: 15
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Buffer source for asyncomplete.vim
==================================Provide buffer autocompletion source for [asyncomplete.vim](https://github.com/prabirshrestha/asyncomplete.vim)
### Installing
```vim
Plug 'prabirshrestha/asyncomplete.vim'
Plug 'prabirshrestha/asyncomplete-buffer.vim'
```#### Registration
```vim
call asyncomplete#register_source(asyncomplete#sources#buffer#get_source_options({
\ 'name': 'buffer',
\ 'allowlist': ['*'],
\ 'blocklist': ['go'],
\ 'completor': function('asyncomplete#sources#buffer#completor'),
\ 'config': {
\ 'max_buffer_size': 5000000,
\ },
\ }))
```
Note: config is optional. `max_buffer_size` defaults to 5000000 (5mb). If the buffer size exceeds `max_buffer_size` it is ignored. Set `max_buffer_size` to -1 for unlimited buffer size.### Options
Clear buffer word cache on events (default: `1`)
```vim
let g:asyncomplete_buffer_clear_cache = 1
```### Credits
All the credit goes to the following projects
* [https://github.com/roxma/nvim-complete-manager](https://github.com/roxma/nvim-complete-manager)