add new config option g:nvim_tree_symlink_arrow (fixes #283) (#512)

This commit is contained in:
Christoph Schiessl
2021-08-02 20:55:41 +02:00
committed by GitHub
parent d3e76b81e5
commit e741680edb
3 changed files with 7 additions and 1 deletions

View File

@@ -335,8 +335,9 @@ local function update_draw_data(tree, depth, markers)
elseif node.link_to then
local icon = get_symlink_icon()
local link_hl = git_hl or 'NvimTreeSymlink'
local arrow = vim.g.nvim_tree_symlink_arrow or ''
table.insert(hl, { link_hl, index, offset, -1 })
table.insert(lines, padding..icon..node.name..""..node.link_to)
table.insert(lines, padding..icon..node.name..arrow..node.link_to)
index = index + 1
else