feat(sings): use new diagnostic configuration + improve UI
This commit is contained in:
@@ -1,7 +1,5 @@
|
||||
local _colors = { "DiffAdd", "DiffChange", "RedrawDebugRecompose" }
|
||||
|
||||
|
||||
|
||||
require("lualine").setup({
|
||||
options = {
|
||||
icons_enabled = true,
|
||||
@@ -42,7 +40,31 @@ require("lualine").setup({
|
||||
source = nil, -- A function that works as a data source for diff.
|
||||
}
|
||||
},
|
||||
lualine_x = { 'encoding', 'filetype', 'diagnostics', 'lsp' },
|
||||
lualine_x = { 'encoding', 'filetype',
|
||||
{
|
||||
'diagnostics',
|
||||
|
||||
sources = { 'nvim_diagnostic', 'coc' },
|
||||
|
||||
sections = { 'error', 'warn', 'info', 'hint' },
|
||||
|
||||
diagnostics_color = {
|
||||
error = 'DiagnosticError', -- Changes diagnostics' error color.
|
||||
warn = 'DiagnosticWarn', -- Changes diagnostics' warn color.
|
||||
info = 'DiagnosticInfo', -- Changes diagnostics' info color.
|
||||
hint = 'DiagnosticHint', -- Changes diagnostics' hint color.
|
||||
},
|
||||
symbols = {
|
||||
hint = ' ',
|
||||
info = ' ',
|
||||
warn = ' ',
|
||||
error = ' ',
|
||||
},
|
||||
colored = true, -- Displays diagnostics status in color if set to true.
|
||||
update_in_insert = false, -- Update diagnostics in insert mode.
|
||||
always_visible = false, -- Show diagnostics even if there are none.
|
||||
}
|
||||
},
|
||||
lualine_y = { 'progress' },
|
||||
lualine_z = { 'location' }
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user