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
11 changes: 11 additions & 0 deletions lua/neo-tree/sources/common/components.lua
Original file line number Diff line number Diff line change
Expand Up @@ -414,4 +414,15 @@ M.indent = function(config, node, state)
return indent
end

M.symlink_target = function(config, node, state)
if node.is_link then
return {
text = string.format(" ➛ %s", node.link_to),
highlight = config.highlight or highlights.SYMBOLIC_LINK_TARGET,
}
else
return {}
end
end

return M
11 changes: 0 additions & 11 deletions lua/neo-tree/sources/filesystem/components.lua
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,4 @@ M.current_filter = function(config, node, state)
}
end

M.symlink_target = function(config, node, state)
if node.is_link then
return {
text = string.format(" ➛ %s", node.link_to),
highlight = config.highlight or highlights.SYMBOLIC_LINK_TARGET,
}
else
return {}
end
end

return vim.tbl_deep_extend("force", common, M)