Geanylua is a plugin to geany, its functions are available to a lua interpretor running as part of Geany. The `{command: }` runs an external command, so you are running a separate lua interpretor which is not running as part of Geany and so the Geany Lua API is not available.