feat: add option for changing symlink opened folder. (#242)

This commit is contained in:
yamatsum
2021-03-23 01:34:30 +09:00
committed by GitHub
parent f7ad4ce5f4
commit 1e946c5855
3 changed files with 5 additions and 1 deletions

View File

@@ -19,6 +19,7 @@ function M.get_icon_state()
empty = "",
empty_open = "",
symlink = "",
symlink_open = "",
}
}

View File

@@ -22,7 +22,9 @@ end
if icon_state.show_folder_icon then
get_folder_icon = function(open, is_symlink, has_children)
local n = ""
if is_symlink then
if is_symlink and open then
n = icon_state.icons.folder_icons.symlink_open
elseif is_symlink then
n = icon_state.icons.folder_icons.symlink
elseif open then
if has_children then