Skip to content

Commit

Permalink
feat(spotlight): update spotlight to work with transparency
Browse files Browse the repository at this point in the history
  • Loading branch information
A-Lamia authored and mehalter committed Oct 11, 2023
1 parent 0ccec22 commit d8da4ef
Showing 1 changed file with 16 additions and 15 deletions.
31 changes: 16 additions & 15 deletions lua/astrotheme/groups/plugins/spotlight.lua
Original file line number Diff line number Diff line change
@@ -1,32 +1,33 @@
local function callback(opts)
local bg = (opts.float and C.ui.base) or (opts.transparent and C.none) or C.ui.base
local blend = vim.o.winblend or 0

return {
SpotlightTitle = {
fg = (opts.title_invert and C.ui.tool) or C.ui.title,
bg = (opts.title_invert and C.ui.title)
-- or (opts.transparent and C.none)
or C.ui.base,
fg = (opts.title_invert and C.ui.base) or C.ui.title,
bg = (opts.title_invert and C.ui.title) or (opts.transparent and C.none) or C.ui.base,
blend = opts.title_invert and 0 or vim.o.winblend or 0,
bold = true,
},
SpotlightBorder = {
fg = C.ui.base,
bg = C.ui.base,
blend = vim.o.winblend or 0,
fg = opts.border and C.ui.border or C.ui.base,
bg = bg,
blend = blend,
},
SpotlightNormal = {
fg = C.ui.text,
bg = C.ui.base,
blend = vim.o.winblend or 0,
bg = bg,
blend = blend,
},
SpotlightWinSeparator = {
fg = C.ui.tabline,
bg = C.ui.tabline,
blend = vim.o.winblend or 0,
fg = C.ui.inactive_base,
bg = opts.transparent and C.none or C.ui.inactive_base,
blend = blend,
},
SpotlightNormalNC = {
fg = C.ui.tabline,
bg = C.ui.tabline,
blend = vim.o.winblend or 0,
fg = C.ui.inactive_base,
bg = opts.transparent and C.none or C.ui.inactive_base,
-- blend = blend,
},
}
end
Expand Down

0 comments on commit d8da4ef

Please sign in to comment.