Skip to content

Commit

Permalink
Merge pull request #136 from ful1e5/main
Browse files Browse the repository at this point in the history
enhance: `StatusLine`  foreground color is customizable
  • Loading branch information
ful1e5 committed Nov 24, 2021
2 parents 37ecbc3 + 9ba7c68 commit af158c9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- fix: assign `user_config` value to `vim.g` global variables
- refactor: global variable prefix store in `key_prefix` variable
- refactor: pass common config in `extra` module
- enhance: `StatusLine` foreground & `StatusLineNC` background colors are customizable ( related to #11 )

### Fixes

Expand Down
2 changes: 2 additions & 0 deletions lua/github-theme/colors.lua
Original file line number Diff line number Diff line change
Expand Up @@ -544,6 +544,8 @@ function M.setup(config)

-- Statusline
colors.bg_statusline = colors.blue
colors.fg_statusline = colors.bg
colors.bg_nc_statusline = colors.bg
colors.fg_nc_statusline = util.darken(colors.fg, 0.5)

-- Search
Expand Down
4 changes: 2 additions & 2 deletions lua/github-theme/theme.lua
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ function M.setup(config)
SpellCap = {sp = c.warning, style = "undercurl"}, -- Word that should start with a capital. |spell| Combined with the highlighting used otherwise.
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.
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.
StatusLine = {fg = c.bg, bg = c.bg_statusline}, -- status line of current window
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.
StatusLine = {fg = c.fg_statusline, bg = c.bg_statusline}, -- status line of current window
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.
TabLine = {bg = c.bg, fg = c.fg}, -- tab pages line, not active tab page label
TabLineFill = {bg = c.bg2}, -- tab pages line, where there are no labels
TabLineSel = {fg = c.pmenu.select, bg = c.blue}, -- tab pages line, active tab page label
Expand Down

0 comments on commit af158c9

Please sign in to comment.