fix: nvimtree integration transparent panel

dev
Andrew 3 years ago
parent 6053fca4a9
commit 7b4355dcf8

@ -2,17 +2,18 @@ local M = {}
function M.get(cp) function M.get(cp)
local config = require("catppuccin.config").options local config = require("catppuccin.config").options
local nvimtree = config.integrations.nvimtree
local root_dir_color = cp.pink local root_dir_color = cp.pink
if config.integrations.nvimtree.show_root then if nvimtree.show_root then
root_dir_color = cp.blue root_dir_color = cp.blue
end end
return { return {
NvimTreeFolderName = { fg = cp.blue }, NvimTreeFolderName = { fg = cp.blue },
NvimTreeFolderIcon = { 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 }, NvimTreeOpenedFolderName = { fg = cp.blue },
NvimTreeEmptyFolderName = { fg = cp.blue }, NvimTreeEmptyFolderName = { fg = cp.blue },
NvimTreeIndentMarker = { fg = cp.gray0 }, NvimTreeIndentMarker = { fg = cp.gray0 },

Loading…
Cancel
Save