Skip to content

Commit

Permalink
github-theme.util.color_overrides function support "NONE" color (fi…
Browse files Browse the repository at this point in the history
…x related to #36)
  • Loading branch information
ful1e5 committed Jul 18, 2021
1 parent 3c3b172 commit 6a95cca
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Plugin Support check #16
- added iTerm colorscheme #14
- added Konsole colorscheme #33
- `github-theme.util.color_overrides` function support "NONE" color (fix related to #36)

### Fixes

Expand Down
5 changes: 4 additions & 1 deletion lua/github-theme/util.lua
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,10 @@ function util.color_overrides(colors, config)
if type(colors[key]) == "table" then
util.color_overrides(colors[key], {colors = value})
else
if string.sub(value, 1, 1) == "#" then
if value:lower() == "none" then
-- set to none
colors[key] = "NONE"
elseif string.sub(value, 1, 1) == "#" then
-- hex override
colors[key] = value
else
Expand Down

0 comments on commit 6a95cca

Please sign in to comment.