Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
willothy committed Jul 31, 2023
1 parent 04f5d6c commit 8911edc
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lua/cokeline/components.lua
Original file line number Diff line number Diff line change
Expand Up @@ -36,19 +36,19 @@ Component.new = function(c, i, default_hl)
if c[name] ~= nil then
return c[name]
end
if default_hl[name] ~= nil then
return default_hl[name]
end
-- if default_hl[name] ~= nil then
-- return default_hl[name]
-- end
return default
end
-- `default_hl` is `nil` when called by `components.lua#63`
default_hl = default_hl or _G.cokeline.config.default_hl
local component = {
index = i,
text = c.text,
fg = attr("fg", "NONE"),
bg = attr("bg", "NONE"),
sp = attr("sp", "NONE"),
fg = attr("fg"),
bg = attr("bg"),
sp = attr("sp"),
bold = attr("bold"),
italic = attr("italic"),
underline = attr("underline"),
Expand Down

0 comments on commit 8911edc

Please sign in to comment.