We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e3353c4 commit 259efeeCopy full SHA for 259efee
lua/nvim-tree/explorer/watch.lua
@@ -19,7 +19,7 @@ local function update_parent_statuses(node, project, root)
19
end
20
21
local function is_git(path)
22
- return path:match "%.git$" ~= nil or path:match(utils.path_add_trailing ".git") ~= nil
+ return vim.fn.fnamemodify(path, ":t") == ".git"
23
24
25
local IGNORED_PATHS = {
0 commit comments