A workspace is finished when you can go from “I wonder if this works” to a printed answer in under thirty seconds. Everything below serves that number. If your setup adds steps between an idea and a result, it is costing you more than it looks.
Put an interpreter where your shell can find it
Install a current Lua build — 5.4 if nothing else dictates otherwise — and confirm it from a fresh terminal. The check is one command, and the answer should include a version number. If the command is not found, the install directory is missing from your PATH, which is a five-minute fix worth doing properly today.
If you work inside a host program such as a game or an editor, its bundled interpreter is the one that matters. Check which version it uses before following any tutorial; a script written for 5.4 may not run in a host built on 5.1.
Choose an editor once, then stop
Any editor with Lua syntax highlighting and a way to run the current file will do. The comparison shopping is the trap: three evenings spent configuring plugins produce no Lua knowledge. Pick one, spend twenty minutes on basics — save, run, toggle a comment, jump to a line — and leave it alone.
If you already have an editor you like, keep it. Familiarity with the editor is worth more than any feature you would switch for.
Give every project one folder
A flat pile of files with names like test2.lua becomes unusable within a month. One folder per project, opened as a whole, avoids that. A shape that holds up:
main.luaas the entry point that runs everything.- A
libfolder for the helper modules yourequire. - A
datafolder for input files and samples. - A short
notes.mdholding the run command and anything you had to look up twice. - A scratch file at the top level for experiments, deleted when it gets messy.
The names do not matter. The predictability does: you should never wonder where a file lived.
Make running a file trivial
At minimum, know the exact command and keep it in the notes file. On Windows, a two-line batch file that opens a terminal in the project folder and runs the entry point is enough. On other systems, a tiny shell script or a make target does the same job.
Avoid anything that requires a build step at this stage. Lua runs from source files, and adding a toolchain before you have written a thousand lines is effort spent in the wrong place.
Leave room for scraps
Keep one permanent file with the small experiments you want to remember: a table printing function, a way to read a whole file in one call, a pattern you had to look up. It is faster than bookmarking, and it grows into your personal reference without any maintenance effort.
Setup earns its keep through repetition. If a command, a folder, or a plugin is not something you will use most days, leave it out until a real project asks for it.