Skip to content

Is it possible to run lua? #32

Answered by dcampos
joshpetit asked this question in Q&A
Discussion options

You must be logged in to vote

Hi, I'm glad you liked the plugin!

In the current version, you can evaluate Lua by starting the eval block with !lua:

snippet luatime
  Current time is: `!lua os.date("%T")`

Older answer (still possible):

It is possible to evaluate Lua code by using the luaeval function. For example:

snippet luatime
  Current time is: `luaeval('os.date("%T")')`

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by dcampos
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