fix: regression in options (#221)

* fix: headings not migrating to flat options

* fix: invalid key when using inherit
This commit is contained in:
not 2024-01-26 21:43:53 -06:00 committed by GitHub
commit 14b371fb78
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 10 additions and 12 deletions

View file

@ -780,10 +780,10 @@ local function set_highlights()
end
if (highlight.inherit == nil or highlight.inherit) and existing ~= nil then
highlight.inherit = nil
parsed.inherit = nil
highlights[group] = vim.tbl_extend("force", existing, parsed)
else
highlight.inherit = nil
parsed.inherit = nil
highlights[group] = parsed
end
end