example of how to transform selected text? #884
-
I know this is a common use case, and probably everyone knows how to do it, but I can't for the life of me seem to figure it out. I assume I have to set a binding in visual mode but I don't know what to set it to. I'm also unsure if I'll have to involve my auto complete for the sake of bringing up options. If it helps for the sake of an example, the luasnip portion of my config is here. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
That's the one key-binding we take care of 😅 |
Beta Was this translation helpful? Give feedback.
-
Sorry, I don't think I'm understanding how to use this... so it sounds like that binding will set a variable for luasnip I don't suppose you can provide a full example of how to set a key binding to show suggestions when I have highlighted text in visual mode? Btw, I can't seem to get it to set anything as |
Beta Was this translation helpful? Give feedback.
Oh okay that's a bit more complicated, aka not really supported natively at all
There's cmp_luasnip for listing all snippets, but it doesn't do filtering
Why not just use regular triggers though? Do you want some kind of reminder what snippets are available?