mirror of
https://github.com/prabirshrestha/asyncomplete.vim.git
synced 2025-12-14 20:35:41 +01:00
* forked off from https://github.com/maralla/completor.vim d475b42c92a000ff9eeb6b4b311eb06f457e71a3
988 B
988 B
asyncomplete.vim (exprimental)
Provide async autocompletion for vim8 with lambda and timers.
This should work in Neovim once lambda support is merged in master.
This repository is fork of https://github.com/maralla/completor.vim in pure vim script with python dependency removed.
Do not depend on this repository. This is me trying out async completion in vim so I will be pushing random things that may break
Installing
Plug 'prabirshrestha/asyncomplete.vim'
Example
function! s:js_completor(args)
call timer_start(2000, {t->a:args.done([{'word': 'class'}, {'word': 'function'}, {'word': 'value'}])})
endfunction
call asyncomplete#register('javascript', ['.', ' '], function('s:js_completor'))
Credits
All the credit goes to https://github.com/maralla/completor.vim