fix(explorer.tree): symlink directories

This commit is contained in:
Folke Lemaitre 2025-02-04 19:15:45 +01:00
parent e8f2909816
commit e5f1e91249
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040

View file

@ -128,6 +128,9 @@ function Tree:expand(node)
if not name then if not name then
break break
end end
if t == "link" and vim.fn.isdirectory(node.path .. "/" .. name) == 1 then
t = "directory"
end
found[name] = true found[name] = true
self:child(node, name, t).type = t self:child(node, name, t).type = t
end end