Skip to content

Commit 736c7ff

Browse files
DoctorKnowsBetterDoctorKnowsBetteralex-courtis
authored
feat: add NvimTreeSymlinkIcon (#2198)
* #2193 Add the ability to change the icon color for "symlink_formatted" * Remove defaults and update doc #2198 --------- Co-authored-by: DoctorKnowsBetter <[email protected]> Co-authored-by: Alexander Courtis <[email protected]>
1 parent b657405 commit 736c7ff

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

doc/nvim-tree-lua.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2031,6 +2031,7 @@ as per |:highlight|
20312031
Default linked group follows name.
20322032

20332033
NvimTreeSymlink
2034+
NvimTreeSymlinkIcon
20342035
NvimTreeSymlinkFolderName (Directory)
20352036
NvimTreeFolderName (Directory)
20362037
NvimTreeRootFolder

lua/nvim-tree/renderer/builder.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,8 +173,9 @@ function Builder:_build_symlink(node)
173173
end
174174

175175
local link_highlight = "NvimTreeSymlink"
176+
local icon_hl = "NvimTreeSymlinkIcon"
176177

177-
return { str = icon }, { str = symlink_formatted, hl = link_highlight }
178+
return { str = icon, hl = icon_hl }, { str = symlink_formatted, hl = link_highlight }
178179
end
179180

180181
---@param node table

0 commit comments

Comments
 (0)