Files
vern-nvim/docs/languages/lua.md
T

1.0 KiB
Raw Permalink Blame History

Lua Features

  • Run Lua Projects:
    Easily run your Lua project from within your terminal using the <leader>pr keybind. This automatically runs your init.lua or the entry point of your Lua code.

  • Create New Lua Files:
    With the <leader>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
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