Learn how to rewrite a Vimscript Neovim config as an init.lua file using the Lua API.
Understand how to define keymaps, autocommands, and user commands in Neovim using Lua.
Use this as a reference for structuring a Neovim plugin written in Lua with proper module organization.
No install needed, documentation only, current content lives in Neovim built-in help at :help lua-guide.
This repository was a community-written guide to using the Lua scripting language inside Neovim, a highly configurable text editor built on Vim. Lua became a first-class language in Neovim for writing configuration files and plugins, replacing or supplementing the older Vimscript approach. This guide was created to help users make that transition by explaining Neovim-specific Lua concepts in a clear, practical way. The guide covered topics such as how to write an init.lua configuration file, how to call Neovim's internal API from Lua, how to work with options, keymaps, autocommands, and user commands, and how to structure a plugin or personal config using Lua modules. It also explained how to interact with plugin managers and LSP configurations through Lua, which became a common setup for Neovim users. The guide gathered a wide following and became a standard starting point for developers switching from Vimscript to Lua within Neovim. Over time its content was reviewed, expanded, and eventually incorporated into the official Neovim documentation. The current README in this repository is a short notice pointing readers to the built-in help at :help lua-guide, which contains an up-to-date version of the material. The original community guide remains accessible in the repository as OLD_README.md for those who prefer reading the original text. There is no code to install or run in this repository. It is a documentation resource only.
← nanotee on gitmyhub — every repo by this author, as a profile.
Verify against the repo before relying on details.