Skip to content

Commit

Permalink
fix: lualine colors with bg color support projekt0n#80
Browse files Browse the repository at this point in the history
  • Loading branch information
ful1e5 committed Sep 21, 2021
1 parent 1518ddd commit 51b46ce
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 16 deletions.
18 changes: 18 additions & 0 deletions lua/github-theme/colors.lua
Original file line number Diff line number Diff line change
Expand Up @@ -530,6 +530,24 @@ function M.setup(config)

}

-- lualine colors are configurable
colors.lualine = {
normal = {
a = {bg = colors.blue, fg = colors.bg},
b = {bg = colors.bg2, fg = colors.blue},
c = {bg = colors.bg, fg = colors.fg_light}
},
insert = {a = {bg = colors.green, fg = colors.bg}, b = {bg = colors.bg2, fg = colors.green}},
command = {a = {bg = colors.magenta, fg = colors.bg}, b = {bg = colors.bg2, fg = colors.magenta}},
visual = {a = {bg = colors.yellow, fg = colors.bg}, b = {bg = colors.bg2, fg = colors.yellow}},
replace = {a = {bg = colors.red, fg = colors.bg}, b = {bg = colors.bg2, fg = colors.red}},
inactive = {
a = {bg = colors.bg_statusline, fg = colors.green},
b = {bg = colors.bg_statusline, fg = colors.bg2, gui = "bold"},
c = {bg = colors.bg_statusline, fg = colors.bg2}
}
}

-- EndOfBuffer colors are configurable
colors.sidebar_eob = config.dark_sidebar and colors.bg2 or colors.bg
colors.sidebar_eob = config.hide_end_of_buffer and colors.sidebar_eob or colors.fg_light
Expand Down
17 changes: 1 addition & 16 deletions lua/lualine/themes/github.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,4 @@ local configModule = require("github-theme.config")
local config = configModule.config
local colors = require("github-theme.colors").setup(config)

return {
normal = {
a = {bg = colors.blue, fg = colors.bg},
b = {bg = colors.bg2, fg = colors.blue},
c = {bg = colors.bg, fg = colors.fg_light}
},
insert = {a = {bg = colors.green, fg = colors.bg}, b = {bg = colors.bg2, fg = colors.green}},
command = {a = {bg = colors.magenta, fg = colors.bg}, b = {bg = colors.bg2, fg = colors.magenta}},
visual = {a = {bg = colors.yellow, fg = colors.bg}, b = {bg = colors.bg2, fg = colors.yellow}},
replace = {a = {bg = colors.red, fg = colors.bg}, b = {bg = colors.bg2, fg = colors.red}},
inactive = {
a = {bg = colors.bg_statusline, fg = colors.green},
b = {bg = colors.bg_statusline, fg = colors.bg2, gui = "bold"},
c = {bg = colors.bg_statusline, fg = colors.bg2}
}
}
return colors.lualine

0 comments on commit 51b46ce

Please sign in to comment.