From 652dd12d6218bac1998e5a88d214c03e217e92d3 Mon Sep 17 00:00:00 2001 From: Pocco81 Date: Sun, 23 Jan 2022 12:15:32 -0500 Subject: [PATCH] feat: add support for transparent nvimtree --- lua/catppuccin/config.lua | 5 +++-- lua/catppuccin/core/integrations/nvimtree.lua | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/lua/catppuccin/config.lua b/lua/catppuccin/config.lua index c19489c..6ee4151 100644 --- a/lua/catppuccin/config.lua +++ b/lua/catppuccin/config.lua @@ -37,6 +37,7 @@ config.options = { nvimtree = { enabled = true, show_root = false, + transparent_panel = false, }, which_key = false, indent_blankline = { @@ -53,8 +54,8 @@ config.options = { lightspeed = false, ts_rainbow = false, hop = false, - notify = true, - telekasten = true, + notify = true, + telekasten = true, }, } diff --git a/lua/catppuccin/core/integrations/nvimtree.lua b/lua/catppuccin/core/integrations/nvimtree.lua index 59d6c8f..3ce4b27 100644 --- a/lua/catppuccin/core/integrations/nvimtree.lua +++ b/lua/catppuccin/core/integrations/nvimtree.lua @@ -9,10 +9,11 @@ function M.get(cp) 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 = cnf.transparent_panel and "NONE" or cp.black1 }, NvimTreeOpenedFolderName = { fg = cp.blue }, NvimTreeEmptyFolderName = { fg = cp.blue }, NvimTreeIndentMarker = { fg = cp.gray0 },