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 Visual Studio Code
- Clone or download and extract this repository
- Continue with one of the following installation methods:
- Create a
.luarc.jsonfile in the root of your Lua project (View Template) - Add the
libraryfolder inside this repository (not the root) to theworkspace.libraryfield, using forward slashes.
- Run Visual Studio Code and open the settings (File -> Preferences -> Settings)
- On the left side, navigate to the Lua extension settings (Extensions -> Lua)
- Find "Workspace: User Third Party" (under Lua extension settings) and click on "Add Item"
- Select the
libraryfolder inside this repository (using forward slashes)
You should now see autocomplete suggestions for all the functions, methods, types, 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 folder.
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 |
