Baneto Lua API
A Visual Studio Code extension that provides Lua library definitions for Baneto, enabling IntelliSense, autocompletion, and type checking for Baneto-specific APIs.
Features
- Baneto API Definitions: Automatically adds Baneto Lua definitions to the
Lua.workspace.library
setting.
- Seamless Integration: Works with the Lua extension by sumneko to provide IntelliSense and type checking for Baneto APIs.
- Easy Setup: Just install the extension, and it will configure everything for you.
Installation
- Open Visual Studio Code.
- Go to the Extensions view by clicking on the Extensions icon in the Activity Bar on the side of the window or pressing
Ctrl+Shift+X
.
- Search for "Baneto Lua API".
- Click Install to install the extension.
Usage
Once installed, the extension will automatically add the Baneto Lua definitions to your workspace. You can start using Baneto APIs with full IntelliSense support.
Example
Here’s an example of how to use Baneto APIs with autocompletion and type checking:
---@type Baneto
local nn = ...
-- Use Baneto APIs with IntelliSense support
nn.Utils.JSON.encode({a = "1"}) -- Autocompletion and type checking will work here
Requirements
Contributing
Contributions are welcome! If you have any ideas, suggestions, or issues, please open an issue or submit a pull request.
- Fork the repository.
- Create a new branch (
git checkout -b feature/YourFeatureName
).
- Commit your changes (
git commit -m 'Add some feature'
).
- Push to the branch (
git push origin feature/YourFeatureName
).
- Open a pull request.
License
This project is licensed under the MIT License. See the LICENSE file for details.
Acknowledgements
Enjoy using Baneto Lua API! If you have any questions or feedback, feel free to open an issue.