Add diagnostics to lualine

This commit is contained in:
Martin Larsson 2025-02-20 22:56:48 +00:00
parent 406d801b6d
commit 269d540212
2 changed files with 27 additions and 6 deletions

View file

@ -31,7 +31,16 @@ return {
},
sections = {
lualine_a = { "mode" },
lualine_b = { "branch", resize_mode },
lualine_b = {
"branch",
{
"diagnostics",
sources = { "nvim_lsp", "nvim_diagnostic", },
sections = { "error", "warn", "info", "hint" },
update_in_insert = false,
},
resize_mode,
},
lualine_c = { "buffers" },
lualine_x = { "encoding", "fileformat", "filetype" },
lualine_y = { "progress" },