lualine: improve consistency between components; add more diagnostic sources

This commit is contained in:
NotAShelf 2024-05-16 07:45:15 +03:00
parent 1fd4a2a1b8
commit 493854e44f
No known key found for this signature in database
GPG Key ID: 02D1DD3FA08B6B29
1 changed files with 12 additions and 8 deletions

View File

@ -171,7 +171,7 @@ in {
'' ''
{ {
"filename", "filename",
symbols = {modified = '', readonly = ' '}, symbols = {modified = '', readonly = ' '},
separator = {right = ''} separator = {right = ''}
} }
'' ''
@ -238,13 +238,17 @@ in {
return msg return msg
end, end,
icon = ' ', icon = ' ',
separator = {left = ''},
} }
'' ''
'' ''
{ {
"diagnostics", "diagnostics",
sources = {'nvim_lsp', 'nvim_diagnostic', 'coc'}, sources = {'nvim_lsp', 'nvim_diagnostic', 'nvim_diagnostic', 'vim_lsp', 'coc'},
symbols = {error = '󰅙 ', warn = ' ', info = ' ', hint = '󰌵 '}, symbols = {error = '󰅙 ', warn = ' ', info = ' ', hint = '󰌵 '},
colored = true,
update_in_insert = false,
always_visible = false,
diagnostics_color = { diagnostics_color = {
color_error = { fg = 'red' }, color_error = { fg = 'red' },
color_warn = { fg = 'yellow' }, color_warn = { fg = 'yellow' },
@ -264,16 +268,13 @@ in {
'searchcount', 'searchcount',
maxcount = 999, maxcount = 999,
timeout = 120, timeout = 120,
} }
'' ''
'' ''
{ {
"branch", "branch",
icon = ' ', icon = ' ',
separator = { separator = {left = ''}
left = '',
},
} }
'' ''
]; ];
@ -284,7 +285,10 @@ in {
description = "active config for: | A | B | C X | Y | (Z) |"; description = "active config for: | A | B | C X | Y | (Z) |";
default = [ default = [
'' ''
{"progress"} {
"progress",
separator = {left = ''}
}
'' ''
'' ''
{"location"} {"location"}
@ -297,7 +301,7 @@ in {
unix = '', -- e712 unix = '', -- e712
dos = '', -- e70f dos = '', -- e70f
mac = '', -- e711 mac = '', -- e711
}, }
} }
'' ''
]; ];