aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/options.lua
diff options
context:
space:
mode:
authorYochem van Rosmalen <git@yochem.nl>2025-05-19 16:18:03 +0200
committerYochem van Rosmalen <git@yochem.nl>2025-05-20 00:03:14 +0200
commit8d397fa458a9f89c8e48fcaa281d2efcd0ef8e69 (patch)
treeec7ea8d87c90845506e0fe9c5a7975a54f711034 /src/nvim/options.lua
parentdc6fc11b8753111a80f537dc762152d9adad2518 (diff)
downloadrneovim-8d397fa458a9f89c8e48fcaa281d2efcd0ef8e69.tar.gz
rneovim-8d397fa458a9f89c8e48fcaa281d2efcd0ef8e69.tar.bz2
rneovim-8d397fa458a9f89c8e48fcaa281d2efcd0ef8e69.zip
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 'src/nvim/options.lua')
-rw-r--r--src/nvim/options.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nvim/options.lua b/src/nvim/options.lua
index f6e24d0e04..75c6f51fae 100644
--- a/src/nvim/options.lua
+++ b/src/nvim/options.lua
@@ -2749,6 +2749,9 @@ local options = {
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.