BugFix: diagnostics highlight extraction (#144)

This commit is contained in:
Shadman 2021-03-26 18:51:48 +06:00 committed by GitHub
parent 62c22d0f05
commit a3037fbf0b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -65,17 +65,17 @@ local function diagnostics(options)
-- apply colors
if not options.color_error then
options.color_error = utils.extract_highlight_colors('DiffDelete',
'foreground') or
'guifg') or
default_color_error
end
if not options.color_warn then
options.color_warn =
utils.extract_highlight_colors('DiffText', 'foreground') or
utils.extract_highlight_colors('DiffText', 'guifg') or
default_color_warn
end
if not options.color_info then
options.color_info =
utils.extract_highlight_colors('Normal', 'foreground') or
utils.extract_highlight_colors('Normal', 'guifg') or
default_color_info
end