Comments (2)
I managed to fix it locally by faking a BufWinEnter event on the buffer source like so:
autocmd User asyncomplete_setup call asyncomplete#register_source(asyncomplete#sources#buffer#get_source_options({
\ 'name': 'buffer',
\ 'allowlist': ['*'],
\ 'blocklist': [],
\ 'completor': function('asyncomplete#sources#buffer#completor'),
\ 'config': {
\ 'max_buffer_size': 5000000,
\ },
\ }))
" fix for https://github.com/prabirshrestha/asyncomplete-buffer.vim/issues/17
function! s:fix_buffer_complete() abort
let l:info = asyncomplete#get_source_info('buffer')
call l:info.on_event(l:info, {}, 'BufWinEnter')
endfunction
autocmd User asyncomplete_setup call s:fix_buffer_complete()
from asyncomplete-buffer.vim.
It seems that the event BufWinEnter is not generated when you start vim with a file. A proper fix for the plugin would be to process not only BufWinEnter, but also VimEnter.
I have found a workaround for this issue by adding this to my vimrc (I am not sure if this is the right approach):
autocmd VimEnter * :doautocmd BufWinEnter
from asyncomplete-buffer.vim.
Related Issues (13)
- Delayed suggestions & unwanted suggestions HOT 3
- Only searches when entered text contains word characters HOT 1
- refresh_keywords question HOT 1
- Case sensivity option
- last word of the line is not included into completion HOT 1
- No russian words are completed HOT 1
- Cause vim stuck while typing HOT 7
- The value of `events` isn't obeyed
- Terminal Buffers
- Dependency Dashboard
- User options are not obeyed
- Allow custom string for splitting text in buffer
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from asyncomplete-buffer.vim.