From 411e3412d1c12ccb723fc3ade7f3f5c2221fd280 Mon Sep 17 00:00:00 2001 From: kiyan42 Date: Tue, 9 Mar 2021 09:16:18 +0100 Subject: [PATCH] hotfix: check that foreground is not empty string to avoid errors --- lua/nvim-tree/colors.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/nvim-tree/colors.lua b/lua/nvim-tree/colors.lua index 65563042..1b6d3b18 100644 --- a/lua/nvim-tree/colors.lua +++ b/lua/nvim-tree/colors.lua @@ -8,7 +8,7 @@ local function get_color_from_hl(hl_name, fallback) if not id then return fallback end local foreground = vim.fn.synIDattr(id, "fg") - if not foreground then return fallback end + if not foreground or foreground == "" then return fallback end return foreground end