Shougo / deoplete.nvim

:stars: Dark powered asynchronous completion framework for neovim/Vim8
Other
5.94k stars 295 forks source link

Could it be possible to create a source like `ncm2_ultisnips`? #845

Closed svanharmelen closed 6 years ago

svanharmelen commented 6 years ago

Problems summary

Since deoplete doesn't actively support anonymous dynamic snippets (like neosnippet does using enable_completed_snippet), I wondered if we could create a plugin like ncm2_ultisnips?

This plugin seems to glue together the ncm2 and UltiSnips to make this work very nicely. So is there any way to add support for that directly into deoplete or by creating a dedicated plugin?

Thanks!

Shougo commented 6 years ago

Since deoplete doesn't actively support anonymous dynamic snippets

Because, deoplete should not implement it. It is depends on snippet plugin. It should be implemented in snippet plugin like neosnippet.

Shougo commented 6 years ago

If you want to create it, you should use CompleteDone autocmd. But parse candidate is needed...

svanharmelen commented 6 years ago

I know (and maybe even agree) that it should be implemented in the snippet plugin. But since some snippets authors seem to have a different opinion, this leaves us users stuck in between without a solution.

Guess that is why the mcn2 plugin I referred to was created to solve that for any ncm2 users. I'll have a look what I can do with the CompleteDone autocmd. Thanks for that pointer!

Shougo commented 6 years ago

But since some snippets authors seem to have a different opinion, this leaves us users stuck in between without a solution.

I know. I think UltiSnips author is busy.