The Lmaobox Lua Annotations allow you to get static code analysis, type checking and autocompletion for the Lmaobox Lua API in your favorite IDE. It is based on the Lua Language Server and Lmaobox Lua API.
Lmaobox development just got a whole lot better 🧠 - LewdDeveloper
- Install the LUA Extenstion for VSCode
- Clone or download and extract this repo
- Open VSCode and click on File -> Preferences -> Settings
- On the left side, click Extensions -> Lua
- Find Workspace: Library and click on Add Item
- Select the library folder of this repo
You should now get autocomplete for all the functions, methods and libraries of the Lmaobox API. It should look like this:
To update the annotations, simply pull the latest changes from this repo and restart your IDE.
If you've manually downloaded the repo, you can also just download the latest version and replace the old one.
For more information refer to the official Lua Language Server Wiki. It has comprehensive documentation on how to use the annotations.
Command | Description |
---|---|
lua_tc | Toggle lua evaluation mode |
lua_load {file path} | Load a lua script in localappdata folder |
lua_exec {code} | Evaluate lua code |