nvim-tree.lua/lua
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
..
nvim-tree feat: support custom $GIT_DIR (#2263) 2023-07-16 12:44:21 +10:00
nvim-tree.lua feat(#2313): sort_by -> sort.sorter, add sort.folders_first default true (#2314) 2023-07-15 15:20:22 +10:00