Provide Neosnippet autocompletion source for asyncomplete.vim
Plug 'prabirshrestha/asyncomplete.vim'
Plug 'Shougo/neosnippet.vim'
Plug 'Shougo/neosnippet-snippets'
Plug 'prabirshrestha/asyncomplete-neosnippet.vim'
Shougo/neosnippet-snippets
is optional. Please refer to neosnippet documentation on how to corretly configure neosnippet.
call asyncomplete#register_source(asyncomplete#sources#neosnippet#get_source_options({
\ 'name': 'neosnippet',
\ 'allowlist': ['*'],
\ 'completor': function('asyncomplete#sources#neosnippet#completor'),
\ }))
To setup the snippet trigger refer to the neosnippet documentation. Here is an example:
imap <C-k> <Plug>(neosnippet_expand_or_jump)
smap <C-k> <Plug>(neosnippet_expand_or_jump)
xmap <C-k> <Plug>(neosnippet_expand_target)