mirror of https://github.com/sgoudham/nvim.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
1.3 KiB
Lua
34 lines
1.3 KiB
Lua
3 years ago
|
local M = {}
|
||
3 years ago
|
|
||
2 years ago
|
function M.get()
|
||
2 years ago
|
local cnf = require("catppuccin.config").options
|
||
|
local transparent_background = cnf.transparent_background
|
||
2 years ago
|
local bg_highlight = (transparent_background and cnf.dim_inactive.enable and cp.dim)
|
||
2 years ago
|
or (transparent_background and "NONE")
|
||
2 years ago
|
or (cnf.dim_inactive.enable and cp.dim)
|
||
2 years ago
|
or cp.base
|
||
3 years ago
|
|
||
2 years ago
|
local inactive_bg = transparent_background and "NONE" or cp.mantle
|
||
3 years ago
|
|
||
2 years ago
|
return {
|
||
|
BufferLineFill = { bg = bg_highlight },
|
||
|
BufferLineBackcrust = { fg = cp.text, bg = inactive_bg }, -- others
|
||
|
BufferLineBufferVisible = { fg = cp.surface1, bg = inactive_bg },
|
||
2 years ago
|
BufferLineBufferSelected = { fg = cp.text, bg = cp.base, style = { "bold", "italic" } }, -- current
|
||
2 years ago
|
BufferLineTab = { fg = cp.surface1, bg = cp.base },
|
||
|
BufferLineTabSelected = { fg = cp.red, bg = cp.blue },
|
||
|
BufferLineTabClose = { fg = cp.red, bg = inactive_bg },
|
||
|
BufferLineIndicatorSelected = { fg = cp.peach, bg = cp.base },
|
||
|
-- separators
|
||
|
BufferLineSeparator = { fg = inactive_bg, bg = inactive_bg },
|
||
|
BufferLineSeparatorVisible = { fg = inactive_bg, bg = inactive_bg },
|
||
|
BufferLineSeparatorSelected = { fg = inactive_bg, bg = inactive_bg },
|
||
|
-- close buttons
|
||
|
BufferLineCloseButton = { fg = cp.surface1, bg = inactive_bg },
|
||
|
BufferLineCloseButtonVisible = { fg = cp.surface1, bg = inactive_bg },
|
||
|
BufferLineCloseButtonSelected = { fg = cp.red, bg = cp.base },
|
||
|
}
|
||
3 years ago
|
end
|
||
3 years ago
|
|
||
3 years ago
|
return M
|