mirror of
https://github.com/neovim/neovim.git
synced 2026-02-17 00:54:15 +00:00
feat(exrc): search in parent directories (#33889)
feat(exrc): search exrc in parent directories Problem: `.nvim.lua` is only loaded from current directory, which is not flexible when working from a subfolder of the project. Solution: Also search parent directories for configuration file.
This commit is contained in:
committed by
GitHub
parent
2c07428966
commit
23bf4c0531
6
runtime/lua/vim/_meta/options.lua
generated
6
runtime/lua/vim/_meta/options.lua
generated
@@ -2076,9 +2076,9 @@ vim.bo.expandtab = vim.o.expandtab
|
||||
vim.bo.et = vim.bo.expandtab
|
||||
|
||||
--- Enables project-local configuration. Nvim will execute any .nvim.lua,
|
||||
--- .nvimrc, or .exrc file found in the `current-directory`, if the file is
|
||||
--- in the `trust` list. Use `:trust` to manage trusted files. See also
|
||||
--- `vim.secure.read()`.
|
||||
--- .nvimrc, or .exrc file found in the `current-directory` and all parent
|
||||
--- directories (ordered upwards), if the files are in the `trust` list.
|
||||
--- Use `:trust` to manage trusted files. See also `vim.secure.read()`.
|
||||
---
|
||||
--- Compare 'exrc' to `editorconfig`:
|
||||
--- - 'exrc' can execute any code; editorconfig only specifies settings.
|
||||
|
||||
Reference in New Issue
Block a user