fix: default highlights overriding existing highlights (#591)

`highlight! default` overrides the existing highlight in order to set a
default link. So any highlight group that exists before will be wiped
over.
This commit is contained in:
Iron-E
2021-11-29 23:29:02 -05:00
committed by GitHub
parent 092fb66b6d
commit ed000eb3d4
2 changed files with 9 additions and 9 deletions

View File

@@ -10,7 +10,7 @@ highlight.keys = {
}
highlight.inherit = function(name, source, override)
local cmd = ('highlight! default %s'):format(name)
local cmd = ('highlight default %s'):format(name)
for _, key in ipairs(highlight.keys) do
if override[key] then
cmd = cmd .. (' %s=%s'):format(key, override[key])