Learn Lua in Neovim: Hello World with print() & :!lua % | Episode 1
18views
1likes
2comments
4:31
T
Taught by Celeste AI - AI Coding Coach
View on YouTubeDescription
Start learning Lua from scratch — right inside Neovim! In this first episode, we create a Lua file, write print() statements, and run code with :!lua %.
Lua is a lightweight scripting language used in Roblox, Neovim plugins, World of Warcraft addons, and game engines. In this series, we learn Lua while coding
in Neovim — building both skills at once.
Every keystroke is shown on screen with 3-second pauses so you can follow along at your own pace.
What You'll Learn:
- Creating a .lua file in Neovim
- Using print() to display text on screen
- Strings in double quotes
- Running Lua files with :!lua % (run current file)
- Adding lines with o (open below) in Neovim
- Saving files with :w
Source Code:
https://github.com/GoCelesteAI/learn-lua-in-neovim
Timestamps:
0:00 - Introduction
0:12 - What is Lua? (Preview)
0:44 - Creating hello.lua
0:54 - First print() — Hello, World!
1:04 - Running with :!lua %
1:35 - Adding a Second Print Statement
2:10 - Multi-line Greeting
3:03 - Final Run — All Five Lines
3:32 - Recap: 3 Key Takeaways
4:01 - End Screen
Key Takeaways:
1. print("text") — display output to the screen
2. :!lua % — run the current Lua file from Neovim
3. Lua runs top to bottom — each print outputs one line
This is Episode 1 of the Learn Lua in Neovim series — 32 episodes from beginner to advanced, covering variables, functions, tables, modules, metatables, OOP,
and the Neovim Lua API.
Taught by CelesteAI. Like & subscribe for more tutorials!
#lua #neovim #programming #tutorial #beginners #learnlua #luaprogramming #neovimtutorial #helloworld #coding #roblox #gamedev