### Lua Setup for Polydev ๐Ÿข #### Key Notes โš ๏ธ * Polydev provides seamless integration with Lua projects, allowing you to easily run and manage Lua code. * You must include a `.polydev` file in your project root directory for Polydev to recognize the project. Missing this file will lead to errors. * The file structure should be organized to ensure smooth execution and functionality. --- #### Keybinds ๐ŸŽฎ Below are the default keybinds for Lua projects using Polydev. You can adjust them to suit your personal preferences. | Keybind | Action | |---------------------|-------------------------------------------------| | `pr` | Run the Lua project | ##### Configuration Example: ```lua -- These are the defaults for Lua, adjust as needed require("Polydev").lua.setup({ keybinds = { ["pr"] = "LuaRun", -- Run the Lua project } }) ``` --- #### Lua Features โœจ * **Run Lua Projects**: Easily run your Lua project from within your terminal using the `pr` keybind. This automatically runs your `init.lua` or the entry point of your Lua code. * **Create New Lua Files**: With the `nf` keybind, you can quickly create new Lua files in the `src` directory, maintaining an organized project structure. --- #### File Structure ๐Ÿ“‚ Hereโ€™s the suggested directory structure for your Lua projects with Polydev: | Directory/File Path | Description | |----------------------------|-----------------------------------------------------| | `.polydev` | Project metadata file that Polydev uses for configuration | | `lua/` | Directory containing the main Lua project files | | `lua//init.lua` | The main entry point for your Lua project | ##### Example File Structure: ```md Projects/ โ””โ”€โ”€ Lua/ โ””โ”€โ”€ Project_Name/ โ”œโ”€โ”€ .polydev -- Polydev configuration file โ””โ”€โ”€ lua/ โ””โ”€โ”€ Project_name/ โ””โ”€โ”€ init.lua -- Main Lua file ``` ---