Show diagnostics in status line and file tree

This commit is contained in:
2022-02-01 20:09:23 +03:00
parent 4173334340
commit cea47c0f76
3 changed files with 14 additions and 5 deletions

View File

@@ -11,6 +11,11 @@ local branch = {
icons_enabled = true,
icon = "",
}
local diagnostics = {
"diagnostics",
always_visible = true,
sections = { "error", "warn" },
}
-- Section "c"
local filename = {
@@ -47,9 +52,9 @@ lualine.setup({
sections = {
lualine_a = { mode },
lualine_b = { branch },
lualine_c = { filename, fileformat },
lualine_x = { location },
lualine_y = { encoding, filetype },
lualine_c = { diagnostics, filename, fileformat },
lualine_x = { location, encoding, filetype },
lualine_y = {},
lualine_z = {},
},
})