feat: add option for changing symlink opened folder. (#242)
This commit is contained in:
@@ -61,6 +61,7 @@ let g:nvim_tree_icons = {
|
|||||||
\ 'empty': "",
|
\ 'empty': "",
|
||||||
\ 'empty_open': "",
|
\ 'empty_open': "",
|
||||||
\ 'symlink': "",
|
\ 'symlink': "",
|
||||||
|
\ 'symlink_open': "",
|
||||||
\ }
|
\ }
|
||||||
\ }
|
\ }
|
||||||
|
|
||||||
|
|||||||
@@ -19,6 +19,7 @@ function M.get_icon_state()
|
|||||||
empty = "",
|
empty = "",
|
||||||
empty_open = "",
|
empty_open = "",
|
||||||
symlink = "",
|
symlink = "",
|
||||||
|
symlink_open = "",
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -22,7 +22,9 @@ end
|
|||||||
if icon_state.show_folder_icon then
|
if icon_state.show_folder_icon then
|
||||||
get_folder_icon = function(open, is_symlink, has_children)
|
get_folder_icon = function(open, is_symlink, has_children)
|
||||||
local n = ""
|
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
|
n = icon_state.icons.folder_icons.symlink
|
||||||
elseif open then
|
elseif open then
|
||||||
if has_children then
|
if has_children then
|
||||||
|
|||||||
Reference in New Issue
Block a user