L3MON4D3
L3MON4D3
I understand that a proper lua-api would be great, but afaict the only use case of retrieving the current visual selection is cutting from visual mode via a keybindig. Do...
As a sidenote, I'd love to have a simple lua-api function that uses nvim_buf_get_text and nvin_buf_set_text to cut the current selection, but afaict this is very complicated to implement correctly...
I don't quite get what you mean, not having to cut the text could also be achieved with separate rhs's/a function that returns the appropriate one
> The use case is obvious. Not to me. In the video you use a mapping, for which you don't necessarily need a pure lua function, the rhs suffices. >...
> We do and there are a use cases like custom bindings Alright, then show me one please. > Nether of PRs use that api. Yes I'm aware, that's why...
Phuuh, yeah that would be possible, but I'd really recommend to pick more uncommon triggers, especially for autosnippets. You could also try using conditions to further limit the positions where...
I think we can add this as a setting, can't see any downsides at least (very small, self contained, if ultisnips has that behaviour it's probably a good idea :D...
Any day now :P (It will probably still take a while, I'm not all that interested in implementing it, srry :/ If one of you guys wants to look into...
Have you considered watching/reading one of the introductory guides? IMO they do a pretty good job of giving quick overviews of luasnip. The reason for the keybindings not being in...
How do you include luasnip?