- change vim root and update tree
- create / rename / delete file and folders
This commit is contained in:
kiyan42
2020-02-10 14:22:51 +01:00
parent a3c4fcc6fe
commit 0bb2a99f55
4 changed files with 109 additions and 35 deletions

View File

@@ -41,7 +41,10 @@ local function format_tree(tree)
for i, node in pairs(tree) do
local padding = get_padding(node.depth)
local icon = get_icon(node.path .. node.name, node.dir, node.open)
local icon = ""
if node.icon == true then
icon = get_icon(node.path .. node.name, node.dir, node.open)
end
dirs[i] = padding .. icon .. node.name
end