Skip to content

Learning LUA

NeoVim has LUA integrated. It is the best way to configure and program your NeoVim environment. Lua is the approach to create your own "Personal development Environment".

:source %              # execute current buffer(file)
:lua                   # execute selection
:lua MyCoolFunction    # execute function

00:00 variables
02:49 functions
04:14 tables (store data)
06:46 threads and user data (skip)
07:11 control flow
10:25 modules
14:07 function calling
07:12 meta-tables
20:07 goodies

local M = {}
M.myVar = 1001
return M