Lua API Reference
The following chapters contain a complete listing of the pattrns Lua scripting API. The content has been auto-generated from the LuaLS Type Definitions, so you can read and use the definition files directly too.
You can also use the LuaLS type definitions directly for autocompletion and to view the API documentation in e.g. vscode and other editors that support the LuaLS language server.
First install the sumneko.lua vscode extension.
Then download a copy of the pattrns type definitions folder (./types/pattrns
) and configure your workspace to use the files in your project. To do this, add the following to your project's /.vscode/settings.json
file
{
"Lua.workspace.library": ["PATH/TO/NERDO_DEFINITION_FOLDER"]
}