Skip to content
Discussion options

You must be logged in to vote

Oh, args is only the text contained in the arg-nodes, to get at the env-table, change to

f(args, parent) 
  return parent.snippet.env[TM_S...] or {}
end

Alternatively, I'd recommend lambda, it makes access to env-variables more readable (check doc for it, it's in extras)

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@no-vici
Comment options

@L3MON4D3
Comment options

Answer selected by no-vici
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants