-
Dear LuaSnip enthusiasts, I have the following snippet:
The syntax is very clear and should work as expected; however, when triggered, I got:
I'm sure there must be something with If you have any ideas, please share with me. Thank you. |
Beta Was this translation helpful? Give feedback.
Answered by
L3MON4D3
May 22, 2023
Replies: 1 comment 2 replies
-
Oh, f(args, parent)
return parent.snippet.env[TM_S...] or {}
end Alternatively, I'd recommend |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
no-vici
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Oh,
args
is only the text contained in the arg-nodes, to get at theenv
-table, change toAlternatively, I'd recommend
lambda
, it makes access to env-variables more readable (check doc for it, it's inextras
)