1.0 KiB
1.0 KiB
Lua Features
-
Run Lua Projects:
Easily run your Lua project from within your terminal using the<leader>prkeybind. This automatically runs yourinit.luaor the entry point of your Lua code. -
Create New Lua Files:
With the<leader>nfkeybind, you can quickly create new Lua files in thesrcdirectory, maintaining an organized project structure.
File Structure 📂
Here’s the suggested directory structure for your Lua projects with Polydev:
| Directory/File Path | Description |
|---|---|
lua/ |
Directory containing the main Lua project files |
lua/<Project_name>/init.lua |
The main entry point for your Lua project |
Example File Structure:
Projects/
└── Lua/
└── Project_Name/
└── lua/
└── Project_name/
└── init.lua -- Main Lua file