Closed zeltak closed 6 years ago
It is not possible to use this on a per snippet setting in yankpad
at the moment, but it works if you globally set yas-wrap-around-region
to t
. It should be possible to add an option in yankpad
to do it per snippet though, in a way similar to the indent_
tags.
The tags :wrap:
and :wrap_nil:
has been added. I tried to add functionality for registers too (which yas-wrap-around-region
seems to support), but I couldn't get it to work.
Hi
i found out that in yasnippet one can set eh
yas-wrap-around-region
variable on a per snippet setting. its cool that you can use the "If non-nil insert region contents" to mark a region and then expand the snippet to have that region "pasted" into the completed expansion.can i define this currently in yankpad? and if not can i request support for yas-wrap-around-region per snippet?
thx
Z