Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Snippet support with deoplete #471

Open
expipiplus1 opened this issue Jan 19, 2016 · 4 comments
Open

Snippet support with deoplete #471

expipiplus1 opened this issue Jan 19, 2016 · 4 comments

Comments

@expipiplus1
Copy link

Is it possible at the moment to get snippets working while using deoplete? I've had no luck setting this up and there's nothing mentioned about this combination in the documentation.

ping @DarkDefender too.

@DarkDefender
Copy link

If I understand the code correctly then the clang_complete snippets are already working in deoplete. However you can't navigate around the placeholder items.

IE if you complete std::vector you get "std::vector<$typename _Tp>" where you should be able to navigate to the type declaration. However this doesn't work currently and I don't seen any built in deoplete functions to handle this.

@expipiplus1
Copy link
Author

Hmm, perhaps deoplete is interfering with my ability to jump in the snippets.

The code for getting neosnippet working with deoplete is actually quite simple https://github.com/Shougo/neosnippet.vim/blob/master/rplugin/python3/deoplete/sources/neosnippet.py

@Shougo What would it take to get snippet support like neosnippet's for this?

@Shougo
Copy link

Shougo commented Jan 19, 2016

Hm.
g:neocomplete#enable_completed_snippet is similar feature.

@DarkDefender
Copy link

@expipiplus1 I got it working with let g:clang_snippets = 1 and then after you have completed the desired code you have go into normal mode and hit tab.

So I guess we can close this now as it works with deoplete

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants