Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion doc/nvim-tree-lua.txt
Original file line number Diff line number Diff line change
Expand Up @@ -855,7 +855,7 @@ Use nvim-tree in a floating window.
5.3 OPTS: RENDERER *nvim-tree-opts-renderer*

*nvim-tree.renderer.add_trailing*
Appends a trailing slash to folder names.
Appends a trailing slash to folder and symlink folder destination names.
Type: `boolean`, Default: `false`

*nvim-tree.renderer.group_empty*
Expand Down
3 changes: 3 additions & 0 deletions lua/nvim-tree/node/directory-link.lua
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@ function DirectoryLinkNode:highlighted_name()

if self.explorer.opts.renderer.symlink_destination then
local link_to = utils.path_relative(self.link_to, self.explorer.absolute_path)
if self.explorer.opts.renderer.add_trailing then
link_to = utils.path_add_trailing(link_to)
end

name.str = string.format("%s%s%s", name.str, self.explorer.opts.renderer.icons.symlink_arrow, link_to)
name.hl = { "NvimTreeSymlinkFolderName" }
Expand Down
Loading