Project-specific configuration in Neovim
There are different ways to manage project-specific configuration in Neovim.
Editorconfig
First, there is EditorConfig
.
EditorConfig is a cross-editor standard for limited project-specific configuration. However, it
only supports a limited set of configuration options such as indentation style and file encoding.
More information on this can be found on the EditorConfig website.
exrc
This is a relatively new feature in Neovim and it is disabled by default. When the
exrc
option is enabled, Neovim will search the
current directory for the following files:
.nvim.lua
.nvimrc
.exrc
It will execute the first of the files in this list.
The option can be enabled using:
vim.o.exrc = true