mirror of
https://github.com/folke/snacks.nvim
synced 2025-08-05 03:08:13 +00:00
fix(explorer.tree): symlink directories
This commit is contained in:
parent
e8f2909816
commit
e5f1e91249
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue