Skip to content

Commit af158c9

Browse files
authored
Merge pull request #136 from ful1e5/main
enhance: `StatusLine` foreground color is customizable
2 parents 37ecbc3 + 9ba7c68 commit af158c9

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
3535
- fix: assign `user_config` value to `vim.g` global variables
3636
- refactor: global variable prefix store in `key_prefix` variable
3737
- refactor: pass common config in `extra` module
38+
- enhance: `StatusLine` foreground & `StatusLineNC` background colors are customizable ( related to #11 )
3839

3940
### Fixes
4041

lua/github-theme/colors.lua

+2
Original file line numberDiff line numberDiff line change
@@ -544,6 +544,8 @@ function M.setup(config)
544544

545545
-- Statusline
546546
colors.bg_statusline = colors.blue
547+
colors.fg_statusline = colors.bg
548+
colors.bg_nc_statusline = colors.bg
547549
colors.fg_nc_statusline = util.darken(colors.fg, 0.5)
548550

549551
-- Search

lua/github-theme/theme.lua

+2-2
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ function M.setup(config)
6464
SpellCap = {sp = c.warning, style = "undercurl"}, -- Word that should start with a capital. |spell| Combined with the highlighting used otherwise.
6565
SpellLocal = {sp = c.info, style = "undercurl"}, -- Word that is recognized by the spellchecker as one that is used in another region. |spell| Combined with the highlighting used otherwise.
6666
SpellRare = {sp = c.hint, style = "undercurl"}, -- Word that is recognized by the spellchecker as one that is hardly ever used. |spell| Combined with the highlighting used otherwise.
67-
StatusLine = {fg = c.bg, bg = c.bg_statusline}, -- status line of current window
68-
StatusLineNC = {fg = c.fg_nc_statusline, bg = c.bg}, -- status lines of not-current windows Note: if this is equal to "StatusLine" Vim will use "^^^" in the status line of the current window.
67+
StatusLine = {fg = c.fg_statusline, bg = c.bg_statusline}, -- status line of current window
68+
StatusLineNC = {fg = c.fg_nc_statusline, bg = c.bg_nc_statusline}, -- status lines of not-current windows Note: if this is equal to "StatusLine" Vim will use "^^^" in the status line of the current window.
6969
TabLine = {bg = c.bg, fg = c.fg}, -- tab pages line, not active tab page label
7070
TabLineFill = {bg = c.bg2}, -- tab pages line, where there are no labels
7171
TabLineSel = {fg = c.pmenu.select, bg = c.blue}, -- tab pages line, active tab page label

0 commit comments

Comments
 (0)