Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions lua/nvim-tree/explorer/explore.lua
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ local function populate_children(handle, cwd, node, git_status, parent)
end

local abs = utils.path_join { cwd, name }
t = t or (vim.loop.fs_stat(abs) or {}).type
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is an extra (not expensive as usually short circuited) call to fs_stat.

Could we put this after line 44?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Moved after line 44, please review.


if Watcher.is_fs_event_capable(abs) then
local profile = log.profile_start("explore populate_children %s", abs)
Expand Down