maxmx03.solarized.nvim/lua/solarized/themes/default/bufferline.lua
Max Del Canto f0763424b3 refactor: Update Solarized Theme
The Solarized theme has been completely reworked to ensure it is a faithful and accurate port of the original work. All inconsistencies and issues have been resolved.

Added the option to enable or disable highlight groups, solarized now have docs and commands.

BREAKING CHANGE: The highlight and colors callbacks now accept only two parameters, colors and colorhelper table.
2023-06-29 10:28:46 -03:00

17 lines
629 B
Lua

return function(c, config)
local utils = require('solarized.utils')
local set_hl = utils.set_hl
-- When `termguicolors` is enabled, this plugin is designed to work automatically,
-- deriving colours from the user's theme.
--
-- My attempt to fix bufferline on transparent background
if config.transparent then
set_hl('BufferLineFill', { bg = c.base02 })
set_hl('BufferLineBufferSelected', { fg = c.base2, italic = true })
set_hl('BufferLineSeparator', { fg = c.base02 })
set_hl('BufferLineSeparatorSelected', { fg = c.base02 })
set_hl('BufferLineSeparatorVisible', { fg = c.base02 })
end
end