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 <you@example.com> Co-authored-by: Alexander Courtis <alex@courtis.org>
This commit is contained in:
committed by
GitHub
parent
b6574056b5
commit
736c7ff590
@@ -2031,6 +2031,7 @@ as per |:highlight|
|
|||||||
Default linked group follows name.
|
Default linked group follows name.
|
||||||
|
|
||||||
NvimTreeSymlink
|
NvimTreeSymlink
|
||||||
|
NvimTreeSymlinkIcon
|
||||||
NvimTreeSymlinkFolderName (Directory)
|
NvimTreeSymlinkFolderName (Directory)
|
||||||
NvimTreeFolderName (Directory)
|
NvimTreeFolderName (Directory)
|
||||||
NvimTreeRootFolder
|
NvimTreeRootFolder
|
||||||
|
|||||||
@@ -173,8 +173,9 @@ function Builder:_build_symlink(node)
|
|||||||
end
|
end
|
||||||
|
|
||||||
local link_highlight = "NvimTreeSymlink"
|
local link_highlight = "NvimTreeSymlink"
|
||||||
|
local icon_hl = "NvimTreeSymlinkIcon"
|
||||||
|
|
||||||
return { str = icon }, { str = symlink_formatted, hl = link_highlight }
|
return { str = icon, hl = icon_hl }, { str = symlink_formatted, hl = link_highlight }
|
||||||
end
|
end
|
||||||
|
|
||||||
---@param node table
|
---@param node table
|
||||||
|
|||||||
Reference in New Issue
Block a user