diff --git a/CHANGELOG.md b/CHANGELOG.md index 27eda183..610a9d01 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/lua/github-theme/group.lua b/lua/github-theme/group.lua index 6877bd30..aed77aa9 100644 --- a/lua/github-theme/group.lua +++ b/lua/github-theme/group.lua @@ -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