fix: symlink file icons rendered when renderer.icons.show.file = false, folder.symlink* was incorrectly rendered as folder.default|open (#2983)

* fix: folder.symlink* was incorrectly rendered as folder.default|open

* fix: symlink file icons rendered when renderer.icons.show.file = false
This commit is contained in:
Alexander Courtis
2024-11-03 12:10:00 +11:00
committed by GitHub
parent 82ab19ebf7
commit 2156bc08c9
2 changed files with 6 additions and 2 deletions

View File

@@ -16,7 +16,7 @@ end
---@return string icon
---@return string? name
local function get_folder_icon_default(node, has_children)
local is_symlink = node.links_to ~= nil
local is_symlink = node.link_to ~= nil
local n
if is_symlink and node.open then
n = M.config.glyphs.folder.symlink_open