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:
@@ -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])
|
||||
|
||||
Reference in New Issue
Block a user