From 93a9a8f01b745108b87aa16a9656345a25a5e58d Mon Sep 17 00:00:00 2001 From: Jipok Date: Sat, 18 Dec 2021 20:59:46 +0500 Subject: nonicons.lua: support 2.0.0 --- plugins/nonicons.lua | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'plugins/nonicons.lua') diff --git a/plugins/nonicons.lua b/plugins/nonicons.lua index d8b8387..b207d58 100644 --- a/plugins/nonicons.lua +++ b/plugins/nonicons.lua @@ -90,9 +90,6 @@ function TreeView:draw() color = style.accent end - -- allow for color overrides - local icon_color = self:color_for_item(item.abs_filename) or color - -- icons x = x + item.depth * style.padding.x + style.padding.x if item.type == "dir" then @@ -107,6 +104,7 @@ function TreeView:draw() x = x + style.padding.x -- default icon local icon = "" -- unicode 61766 + local icon_color = color -- icon depending on the file extension or full name local custom_icon = known_names_icons[item.name:lower()] if custom_icon == nil then -- cgit v1.2.3