Skip to content

Commit

Permalink
fix(highlights): if color_icons is false set to NONE
Browse files Browse the repository at this point in the history
This was previously set to "fg" which only works if the user actually
has set a normal background which most people do except for transparency
users.

fixes #702
  • Loading branch information
akinsho committed Apr 21, 2023
1 parent 03e9dde commit 8b32447
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/bufferline/highlights.lua
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ function M.set_icon_highlight(state, hls, base_hl)
})[state]

local color_icons = config.options.color_icons
local color = not color_icons and "fg" or nil
local color = not color_icons and "NONE"
local hl_colors = vim.tbl_extend("force", parent, {
fg = color or colors.get_color({ name = base_hl, attribute = "fg" }),
ctermfg = color or colors.get_color({ name = base_hl, attribute = "fg", cterm = true }),
Expand Down

0 comments on commit 8b32447

Please sign in to comment.