mirror of
https://github.com/neovim/neovim.git
synced 2026-01-06 13:27:43 +00:00
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.
This commit is contained in:
3
runtime/lua/vim/_meta/options.lua
generated
3
runtime/lua/vim/_meta/options.lua
generated
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user