feat(#1837): add git.disable_for_dirs (#2239)

* feat(##1837): add git.disabled_dirs

* feat(#1837): add git.disable_for_dirs

* feat(#1837): note disable_for_dirs evaluation
This commit is contained in:
Alexander Courtis
2023-06-04 14:29:04 +10:00
committed by GitHub
parent 73ab6651db
commit 63061404f4
4 changed files with 21 additions and 3 deletions

View File

@@ -458,6 +458,7 @@ applying configuration.
ignore = true,
show_on_dirs = true,
show_on_open_dirs = true,
disable_for_dirs = {},
timeout = 400,
},
modified = {
@@ -525,8 +526,7 @@ applying configuration.
trash = true,
},
},
experimental = {
},
experimental = {},
log = {
enable = false,
truncate = false,
@@ -734,6 +734,11 @@ Git integration with icons and colors.
Only relevant when `git.show_on_dirs` is `true`.
Type: `boolean`, Default: `true`
*nvim-tree.git.disable_for_dirs*
Disable git integration when git top-level matches these paths.
May be relative, evaluated via |fnamemodify| `":p"`
Type: `table`, Default: `{}`
*nvim-tree.git.timeout*
Kills the git process after some time if it takes too long.
Git integration will be disabled after 10 git jobs exceed this timeout.