fix: bufferline integration w transparent_background

dev
Benny Powers 2 years ago committed by GitHub
parent 773d339cbd
commit e8af06e04f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1,11 +1,13 @@
local M = {}
function M.get(cp)
local transparent_background = require("catppuccin.config").options.transparent_background
local bg_highlight = transparent_background and "NONE" or cp.base
local inactive_bg = cp.mantle
local inactive_bg = transparent_background and "NONE" or cp.mantle
return {
BufferLineFill = { bg = cp.crust },
BufferLineFill = { bg = bg_highlight },
BufferLineBackcrust = { fg = cp.text, bg = inactive_bg }, -- others
BufferLineBufferVisible = { fg = cp.surface1, bg = inactive_bg },
BufferLineBufferSelected = { fg = cp.text, bg = cp.base, style = "bold,italic" }, -- current

Loading…
Cancel
Save