Source of asyncomplete.vim which completes the words around the line.
Plug 'prabirshrestha/asyncomplete.vim'
Plug 'akaimo/asyncomplete-around.vim'
call asyncomplete#register_source(asyncomplete#sources#around#get_source_options({
\ 'name': 'around',
\ 'allowlist': ['*'],
\ 'priority': 10,
\ 'completor': function('asyncomplete#sources#around#completor'),
\ }))
The number of lines to be covered (default: 20)
let g:asyncomplete_around_range = 20