L3MON4D3
L3MON4D3
> Sorry. I might not understand the problem. Could you explain more easily? Yeah, of course. `cmp_luasnip` is the source for luasnip, so snippets have to be expanded in [`source:execute`](https://github.com/saadparwaiz1/cmp_luasnip/blob/master/lua/cmp_luasnip/init.lua#L123-L149),...
I just tried it (which I could've done like 5 hours ago xD), seems like the entire completion-item is copied :/ I'm not certain if this really is something useful...
Oh btw, are you using manual or auto-completion? It works for me with manual, but haven't tried auto
> What do you mean by auto-completion? Oh, just whether it's always on or if you have to press some key to invoke `nvim-cmp`. Yup, I have the nvim_lsp-source :/...
Oh does the order of the sources make a difference?
Mhmm, I guess you'd have to take a look at cmp's issues and find similar ones, maybe see what kind of debugging-steps are taken (is there a quick way to...
Oh nice, that was fast :D I think I'll add some api-functions for getting/setting choices to Luasnip, if anything changes internally we can prevent incompatibilities. But it might be best...
I added `get_current_choices` and `set_choice` to `require("luasnip")`. On second thought, it probably won't hurt to use these in a new source, putting some small warning to update luasnip before using...
If it's possible to trigger cmp from lua, you could use [LuaSnips events](https://github.com/L3MON4D3/LuaSnip/blob/master/DOC.md#events)
Right: I think this is a good approach if one really wants to expand their snippets using `cmp` (because, well, if the regex-snippet can be expanded through `cmp`, it can...