Group related autocmds together.
Section: Lua autocommands
Create an augroup
lua
lua
local grp = vim.api.nvim_create_augroup("MyGroup", { clear = true })Explanation
Augroups make config idempotent and easier to reload.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Lua autocommands