I've noticed that something like
Echo('hello world')
Can be placed outside of the function so that it will execute as soon as a plugin is loaded (or the showfile for that matter). Which is great for lua functions that need happen at runtime.
However it seems that
Cmd('go+ macro "mymacro"')
or
CmdIndirect('go+ macro "mymacro"')
Do not execute. So does anyone know a sneaky way to get the plugin to actually call some sort of console function when it loads? Thinking of it like a Startup Macro...
Thanks