diff --git a/docs/configuration/general.md b/docs/configuration/general.md index 6baf0ef9c..854a8d8de 100644 --- a/docs/configuration/general.md +++ b/docs/configuration/general.md @@ -565,4 +565,25 @@ vim.api.nvim_create_autocmd({ "BufWritePre" }, { +## Project-Specific Settings + +You can also load different configurations based on what directory you are in. + +Project-specific settings are defined in `/.lazy.lua`, where +`` is the directory neovim is opened in. + +```lua title="/.lazy.lua" +-- Project-specific editor settings +-- e.g. vim.opt.tabstop = 4 + +-- Return is required, even if it's an empty table +return { + -- Project-specific plugin settings + -- See next page for how to configure plugins +} +``` + +See [@kezhenxu94's blog](https://kezhenxu94.me/blog/lazyvim-project-specific-settings) +for more details. +