From 7b4355dcf8286fbd3f3970f53bc42838073fa3f1 Mon Sep 17 00:00:00 2001 From: Andrew Date: Mon, 24 Jan 2022 11:21:47 +1100 Subject: [PATCH] fix: nvimtree integration transparent panel --- lua/catppuccin/core/integrations/nvimtree.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lua/catppuccin/core/integrations/nvimtree.lua b/lua/catppuccin/core/integrations/nvimtree.lua index 59d6c8f..a01b139 100644 --- a/lua/catppuccin/core/integrations/nvimtree.lua +++ b/lua/catppuccin/core/integrations/nvimtree.lua @@ -2,17 +2,18 @@ local M = {} function M.get(cp) local config = require("catppuccin.config").options + local nvimtree = config.integrations.nvimtree local root_dir_color = cp.pink - if config.integrations.nvimtree.show_root then + if nvimtree.show_root then root_dir_color = cp.blue end return { NvimTreeFolderName = { fg = cp.blue }, NvimTreeFolderIcon = { fg = cp.blue }, - NvimTreeNormal = { fg = cp.white, bg = cp.black1 }, + NvimTreeNormal = { fg = cp.white, bg = nvimtree.transparent_panel and "NONE" or cp.black1 }, NvimTreeOpenedFolderName = { fg = cp.blue }, NvimTreeEmptyFolderName = { fg = cp.blue }, NvimTreeIndentMarker = { fg = cp.gray0 },