diff options
| author | Yochem van Rosmalen <git@yochem.nl> | 2025-05-19 16:18:03 +0200 |
|---|---|---|
| committer | Yochem van Rosmalen <git@yochem.nl> | 2025-05-20 00:03:14 +0200 |
| commit | 8d397fa458a9f89c8e48fcaa281d2efcd0ef8e69 (patch) | |
| tree | ec7ea8d87c90845506e0fe9c5a7975a54f711034 /runtime/lua/vim/_meta/options.lua | |
| parent | dc6fc11b8753111a80f537dc762152d9adad2518 (diff) | |
feat(exrc): stop searching in parent directories by unsetting 'exrc'
Problem:
No way for a user to limit 'exrc' search in parent directories (compare
editorconfig.root).
Solution:
A configuration file can unset 'exrc', disabling the search for its
parent directories.
Diffstat (limited to 'runtime/lua/vim/_meta/options.lua')
| -rw-r--r-- | runtime/lua/vim/_meta/options.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/runtime/lua/vim/_meta/options.lua b/runtime/lua/vim/_meta/options.lua index b77b135f92..90118cb4a1 100644 --- a/runtime/lua/vim/_meta/options.lua +++ b/runtime/lua/vim/_meta/options.lua @@ -2080,6 +2080,9 @@ vim.bo.et = vim.bo.expandtab --- directories (ordered upwards), if the files are in the `trust` list. --- Use `:trust` to manage trusted files. See also `vim.secure.read()`. --- +--- Unset 'exrc' to stop further searching of 'exrc' files in parent +--- directories, similar to `editorconfig.root`. +--- --- Compare 'exrc' to `editorconfig`: --- - 'exrc' can execute any code; editorconfig only specifies settings. --- - 'exrc' is Nvim-specific; editorconfig works in other editors. |
