Skip to content

Commit

Permalink
fix: Assigning {} to a highlight group unsets it.
Browse files Browse the repository at this point in the history
Fixed #249
  • Loading branch information
ful1e5 committed May 10, 2023
1 parent e9f655d commit 861245e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- #244 fixed
- #246 fixed
- #247 fixed
- #249 fixed

## [v0.0.7] - 16 January 2023

Expand Down
8 changes: 8 additions & 0 deletions lua/github-theme/group.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@ local M = {}

local function override(groups, spec, ovr)
ovr = template.parse(ovr, spec)
-- If `set = {}` in override,
-- the corresponding group is deleted.
-- https://github.com/projekt0n/github-nvim-theme/issues/249
for k, v in pairs(ovr) do
if v.link == '' then
groups[k] = nil
end
end
return collect.deep_extend(groups, ovr)
end

Expand Down

0 comments on commit 861245e

Please sign in to comment.