nvim: after/plugin/lualine: Move diagnostics to the right of status line

This commit is contained in:
Sanchayan Maity 2021-12-16 10:38:43 +05:30
parent 664218addb
commit 2a8dd6343a

View file

@ -112,19 +112,6 @@ ins_left {
}, },
} }
ins_left {
'diagnostics',
sources = { 'nvim_diagnostic' },
symbols = { error = 'E:', warn = 'W:', info = 'I:', hint = 'H:' },
diagnostics_color = {
color_error = { fg = colors.red },
color_warn = { fg = colors.yellow },
color_info = { fg = colors.cyan },
color_hint = { fg = colors.orange },
},
}
ins_left { ins_left {
function() function()
return '%=' return '%='
@ -137,6 +124,18 @@ ins_right {
color = { fg = colors.cyan, gui = 'bold' } color = { fg = colors.cyan, gui = 'bold' }
} }
ins_right {
'diagnostics',
sources = { 'nvim_diagnostic' },
symbols = { error = 'E:', warn = 'W:', info = 'I:', hint = 'H:' },
diagnostics_color = {
color_error = { fg = colors.red },
color_warn = { fg = colors.yellow },
color_info = { fg = colors.cyan },
color_hint = { fg = colors.orange },
},
}
ins_right { ins_right {
'location', 'location',
color = { fg = colors.green, gui = 'bold' } color = { fg = colors.green, gui = 'bold' }