Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/prabirshrestha/asyncomplete-neosnippet.vim

provides neosnippet autocomplete for asyncomplete.vim
https://github.com/prabirshrestha/asyncomplete-neosnippet.vim

asyncomplete code-completion neosnippet neovim vim

Last synced: about 1 month ago
JSON representation

provides neosnippet autocomplete for asyncomplete.vim

Awesome Lists containing this project

README

        

Neosnippet source for asyncomplete.vim
======================================

Provide [Neosnippet](https://github.com/Shougo/neosnippet.vim) autocompletion source for [asyncomplete.vim](https://github.com/prabirshrestha/asyncomplete.vim)

### Installing

```viml
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.

#### Registration

```vim
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:

```vim
imap (neosnippet_expand_or_jump)
smap (neosnippet_expand_or_jump)
xmap (neosnippet_expand_target)
```