Ultisnips: [Feature Request] Integration with deoplete

Created on 18 Jun 2015  路  14Comments  路  Source: SirVer/ultisnips

I'm just suggesting the possibility of integration with deoplete.

Deoplete is the next generation completion plugin for neovim. While still in alpha stage, both neovim and deoplete are quite stable.

Integration with deoplete is not hard, given UltiSnip's python implementation.(e.g https://github.com/Shougo/neosnippet.vim/blob/master/rplugin/python3/deoplete/sources/neosnippet.py)

I can put similar file in my own .nvim, but I'm more glad that UltiSnip will play well with deoplete out of box.

Most helpful comment

Did not found right place to leave this usefull (thanks to Shougo) notice about configuring Deoplete to work with snippets.
Add to init.vim

call deoplete#custom#set('ultisnips', 'matchers', ['matcher_fuzzy'])

or you'll miss snippets with short (single or double char) names from Deoplete completion list :(

For example many php.snippets snippets will be hidden from your eyes without this command in config.

All 14 comments

Well, the deoplete sources API is not stable.
it may be changed.

oh.. I can put it in my own .nvim for now

A pull request is welcome once shougos new plugin is stabilized. I'd rather not have it right now if there are chances that it breaks soonish down the line.

Any chance this can be revisited?
AFAIK, deoplete is now stable.

deoplete will be version 1.0 in 11/22.

@simonweil I will not work on this, but I gladly merge a contribution.

I'd just like to be able to use tab for both UltiSnips and Deoplete. Is that possible? I've had no luck.

deoplete UltiSnips support is already merged.
If it is not work, you should create new issue with minimal configuration and the reproduce ways.

@Shougo The deoplate support for the source is merged but tabing and enter do not work nicely out of the box.

@domi91c I made it work with a few custom functions and mappings:
https://github.com/simonweil/dotfiles/blob/master/nvimrc#L29-L85

I use supertab though I'm not sure it's needed.
Any comments and suggestions are welcome.

@simonweil (or anyone) do you know if it is possible to get autocompletion to work with mirrored tab stops. Such as:

snippet mySnippet
    ${1:Something}
    $1

I find that if I allow the first tab to be completed by deoplete the mirror will stop being updated and stop at whatever I started typing before it was completed.

The text cannot be updated when the popup exists...

@Shougo yeah I was getting that impression. That's too bad. Oh well.

It is Vim/neovim's feature.
I don't think it can be fixed.

Did not found right place to leave this usefull (thanks to Shougo) notice about configuring Deoplete to work with snippets.
Add to init.vim

call deoplete#custom#set('ultisnips', 'matchers', ['matcher_fuzzy'])

or you'll miss snippets with short (single or double char) names from Deoplete completion list :(

For example many php.snippets snippets will be hidden from your eyes without this command in config.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

raorm picture raorm  路  4Comments

PratikBhusal picture PratikBhusal  路  3Comments

kirillbobyrev picture kirillbobyrev  路  4Comments

ahmedelgabri picture ahmedelgabri  路  5Comments

andreyorst picture andreyorst  路  6Comments