apply merge before checking git
This commit is contained in:
@@ -337,12 +337,12 @@ function M.populate(entries, cwd, parent_node)
|
|||||||
table.insert(entries, file)
|
table.insert(entries, file)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
utils.merge_sort(entries, node_comparator)
|
||||||
|
|
||||||
if (not icon_config.show_git_icon) and vim.g.nvim_tree_git_hl ~= 1 then
|
if (not icon_config.show_git_icon) and vim.g.nvim_tree_git_hl ~= 1 then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
utils.merge_sort(entries, node_comparator)
|
|
||||||
|
|
||||||
git.update_status(entries, cwd, parent_node)
|
git.update_status(entries, cwd, parent_node)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user