add diagnostics icons to lualine

This commit is contained in:
2024-11-01 15:23:59 -04:00
parent 600f4042c7
commit 4a51cefa25
+17 -5
View File
@@ -18,8 +18,9 @@ return {
statusline = {}, statusline = {},
winbar = {}, winbar = {},
}, },
ignore_focus = {}, ignore_focus = { "NvimTree" },
always_divide_middle = true, always_divide_middle = true,
always_show_tabline = true,
globalstatus = false, globalstatus = false,
refresh = { refresh = {
statusline = 1000, statusline = 1000,
@@ -29,7 +30,18 @@ return {
}, },
sections = { sections = {
lualine_a = { "mode" }, lualine_a = { "mode" },
lualine_b = { "branch", "diff", "diagnostics" }, lualine_b = {
"branch",
"diff",
{
"diagnostics",
sources = { "nvim_lsp", "nvim_workspace_diagnostic", "nvim_diagnostic" },
sections = { "error", "warn", "info", "hint" },
--symbols = { error = " ", warn = " ", info = " ", hint = "󰠠 " },
colored = true,
always_visible = false,
},
},
lualine_c = { lualine_c = {
{ {
function() function()
@@ -42,11 +54,11 @@ return {
{ {
lazy_status.updates, lazy_status.updates,
cond = lazy_status.has_updates, cond = lazy_status.has_updates,
color = { fg = "#ff9e64" }, color = { fg = "#ebcb8b" },
}, },
{ "encoding", "fileformat", "filetype" }, { "encoding", "fileformat", "filetype" },
}, },
lualine_y = { "progress" }, lualine_y = { "searchcount", "progress" },
lualine_z = { "location" }, lualine_z = { "location" },
}, },
inactive_sections = { inactive_sections = {
@@ -60,7 +72,7 @@ return {
tabline = {}, tabline = {},
winbar = {}, winbar = {},
inactive_winbar = {}, inactive_winbar = {},
extensions = {}, extensions = { "nvim-tree", "lazy", "trouble", "quickfix", "fzf", "mason" },
} }
end, end,
} }