diff --git a/lua/neo-tree/sources/common/components.lua b/lua/neo-tree/sources/common/components.lua index c6d0ec3b..a37e3c8f 100644 --- a/lua/neo-tree/sources/common/components.lua +++ b/lua/neo-tree/sources/common/components.lua @@ -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 diff --git a/lua/neo-tree/sources/filesystem/components.lua b/lua/neo-tree/sources/filesystem/components.lua index 2efa189e..28689a8a 100644 --- a/lua/neo-tree/sources/filesystem/components.lua +++ b/lua/neo-tree/sources/filesystem/components.lua @@ -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)