This is an automated archive made by the Lemmit Bot.

The original was posted on /r/neovim by /u/Xzaphan on 2025-10-26 08:48:57+00:00.


Neovim supports a per-project config file called .nvim.lua, which lets you define local settings that only apply within a specific folder or project — like a modern replacement for .vimrc or .exrc.

You just need to enable it in your main config:

vim.o.exrc = true vim.o.secure = true

Then, Neovim will automatically load .nvim.lua files it finds in the current directory. Docs: :help exrc

I’m curious — what do you use .nvim.lua for? Any cool examples, snippets, or creative setups?