Replies: 1 comment
-
Take a look at this tutorial that does exactly that at the end: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I wonder if it possible for a snippet to access it's context (i.e. lines preceding it), for example I would like to have a function node compute a value based on something that appears in the buffer a few lines above from the line where I triggered it (I tried to use a multiline regex-trigger but could not get it to work).
The value I would be interested in is the nearest match for a given regex - but it could appear anywhere between the start of the buffer and the place where I trigger the snippet.
If that is understandable at all - is there a way to do it with luasnip?
Many thanks.
Beta Was this translation helpful? Give feedback.
All reactions