@@ -20,13 +20,13 @@ let s:lint_popup_timer = 0
2020
2121let g: easycomplete_diagnostics_config = {
2222 \ ' error' :
23- \ {' type' : 1 , ' prompt_text' : s: error_text , ' fg_color' : easycomplete#util#IsGui () ? ' #FF0000 ' : ' red' , " hl" : ' ErrorMsg' },
23+ \ {' type' : 1 , ' prompt_text' : s: error_text , ' fg_color' : easycomplete#util#IsGui () ? easycomplete#ui#DiagColor ( " error " ) : ' red' , " hl" : ' ErrorMsg' },
2424 \ ' warning' :
25- \ {' type' : 2 , ' prompt_text' : s: waring_text , ' fg_color' : easycomplete#util#IsGui () ? ' #FFFF00 ' : ' yellow' , " hl" : ' WarningMsg' },
25+ \ {' type' : 2 , ' prompt_text' : s: waring_text , ' fg_color' : easycomplete#util#IsGui () ? easycomplete#ui#DiagColor ( " warning " ) : ' yellow' , " hl" : ' WarningMsg' },
2626 \ ' information' :
27- \ {' type' : 3 , ' prompt_text' : s: infermation_text ,' fg_color' : easycomplete#util#IsGui () ? ' #5FFFAF ' : ' 85' , " hl" : ' Pmenu' },
27+ \ {' type' : 3 , ' prompt_text' : s: infermation_text ,' fg_color' : easycomplete#util#IsGui () ? easycomplete#ui#DiagColor ( " information " ) : ' 85' , " hl" : ' Pmenu' },
2828 \ ' hint' :
29- \ {' type' : 4 , ' prompt_text' : s: hint_text , ' fg_color' : easycomplete#util#IsGui () ? ' #8787FF ' : ' 99' , " hl" : ' Pmenu' }
29+ \ {' type' : 4 , ' prompt_text' : s: hint_text , ' fg_color' : easycomplete#util#IsGui () ? easycomplete#ui#DiagColor ( " hint " ) : ' 99' , " hl" : ' Pmenu' }
3030 \ }
3131
3232function ! easycomplete#sign#test ()
0 commit comments