Closed mt1ger closed 2 years ago
By default diagnostics component looks for DiagnostcWarn
, LspDiagnosticsDefaultWarning
, DiffText
highlight groups in said order https://github.com/nvim-lualine/lualine.nvim/blob/1ae4f0aa74f0b34222c5ef3281b34602a76b2b00/lua/lualine/components/diagnostics/config.lua#L34
Your colotscheme probably doesn't define those groups properly.
You can check colors of those hl_groups to verify:
:hi DiagnostcWarn
:hi LspDiagnosticsDefaultWarning
:hi DiffText
You can overwrite the default colors easily with diagnostics_color option
require'lualine'.setup {
lualine_x = {
{
'diagnostics',
sources = {"coc"},
sections = {'error', 'warn', 'info', 'hint'},
colored = true,
symbols = {error = ' ', warn = ' ', info = ' ', hint = ''},
diagnostics_color = {
warn = { fg = '#ffa500'},
}
},
'encoding', 'filetype'
}
}
Sorry for the late reply, thank you.
Welcome.
Self Checks
How to reproduce the problem
Expected behaviour
The warning icon should be some colors in the yellow region.
Actual behaviour
The warning icon is dark.
Minimal config to reproduce the issue
Config
Aditional information