nvim-tree.lua/lua/nvim-tree/explorer
Zach Himsel a6daf50b9d
feat: support custom $GIT_DIR (#2263)
* feat: Watch $GIT_DIR for git changes, if set

While rarely used, it's possible to set the $GIT_DIR environment
variable to instruct git to use a directory other than `.git`.

This checks if that environment variable is set; if it is, the plugin
will watch that directory. If it's not set, it'll fall back to the
default `.git` directory.

* fix: Don't create two watchers for $GIT_DIR

This will ignore a path for watching if EITHER it's '.git', or the value
of $GIT_DIR (if it's set).

If $GIT_DIR is not set, the vim.env object returns `nil`, which will
never match `path`.

* fix: Attempt to make a relative $GIT_DIR absolute
2023-07-16 12:44:21 +10:00
..
explore.lua feat(#2079): sort_by may return predefined sort (#2123) 2023-04-15 15:53:40 +10:00
filters.lua chore: remove diagnostic suppressions after tidying nits 2023-01-01 13:27:05 +11:00
init.lua fix(git): git folder fixes and improvements (#1809) 2022-12-17 17:05:33 +11:00
node-builders.lua fix(#1831): remove instrumentation (#1968) 2023-02-04 16:54:36 +11:00
node.lua fix(#2301): do not show git status on grouped dirs when show_on_open_dirs (#2303) 2023-07-02 16:00:27 +10:00
reload.lua fix(#2293): remove unnecessary git status during find file (#2294) 2023-07-01 11:28:20 +10:00
sorters.lua feat(#2313): sort_by -> sort.sorter, add sort.folders_first default true (#2314) 2023-07-15 15:20:22 +10:00
watch.lua feat: support custom $GIT_DIR (#2263) 2023-07-16 12:44:21 +10:00