mirror of
https://github.com/folke/snacks.nvim
synced 2025-08-05 11:18:26 +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
|
||||
break
|
||||
end
|
||||
if t == "link" and vim.fn.isdirectory(node.path .. "/" .. name) == 1 then
|
||||
t = "directory"
|
||||
end
|
||||
found[name] = true
|
||||
self:child(node, name, t).type = t
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue