References
ao Editor setup
Remembering all the built in ao functions and utilites can sometimes be hard. To enhance your developer experience, it is recommended to install the Lua Language Server extension into your favorite text editor and add the ao addon. It supports all built in aos modules and globals.
VS Code
Install the sumneko.lua extension:
- Search for "Lua" by sumneko in the extension marketplace
- Download and install the extension
- Open the VS Code command palette with
Shift + Command + P
(Mac) /Ctrl + Shift + P
(Windows/Linux) and run the following command:
> Lua: Open Addon Manager
- In the Addon Manager, search for "ao", it should be the first result. Click "Enable" and enjoy autcomplete!
If you don't want to do this process for each of your workspaces, you can copy the Lua.workspace.library
object from the generated workspace settings.json
file to your global settings.json
file.
Other editors
- Verify that your editor supports the language server protocol
- Install Lua Language Server by following the instructions at luals.github.io
- Install the "ao" addon to the language server