BugFix: diagnostics highlight extraction (#144)
This commit is contained in:
parent
62c22d0f05
commit
a3037fbf0b
|
@ -65,17 +65,17 @@ local function diagnostics(options)
|
||||||
-- apply colors
|
-- apply colors
|
||||||
if not options.color_error then
|
if not options.color_error then
|
||||||
options.color_error = utils.extract_highlight_colors('DiffDelete',
|
options.color_error = utils.extract_highlight_colors('DiffDelete',
|
||||||
'foreground') or
|
'guifg') or
|
||||||
default_color_error
|
default_color_error
|
||||||
end
|
end
|
||||||
if not options.color_warn then
|
if not options.color_warn then
|
||||||
options.color_warn =
|
options.color_warn =
|
||||||
utils.extract_highlight_colors('DiffText', 'foreground') or
|
utils.extract_highlight_colors('DiffText', 'guifg') or
|
||||||
default_color_warn
|
default_color_warn
|
||||||
end
|
end
|
||||||
if not options.color_info then
|
if not options.color_info then
|
||||||
options.color_info =
|
options.color_info =
|
||||||
utils.extract_highlight_colors('Normal', 'foreground') or
|
utils.extract_highlight_colors('Normal', 'guifg') or
|
||||||
default_color_info
|
default_color_info
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue