From 493854e44ff6860ed8c84aa8aa081d52e97e707f Mon Sep 17 00:00:00 2001 From: NotAShelf Date: Thu, 16 May 2024 07:45:15 +0300 Subject: [PATCH] lualine: improve consistency between components; add more diagnostic sources --- .../plugins/statusline/lualine/lualine.nix | 20 +++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/modules/plugins/statusline/lualine/lualine.nix b/modules/plugins/statusline/lualine/lualine.nix index bf77a82..ef4018a 100644 --- a/modules/plugins/statusline/lualine/lualine.nix +++ b/modules/plugins/statusline/lualine/lualine.nix @@ -171,7 +171,7 @@ in { '' { "filename", - symbols = {modified = ' ', readonly = ' '}, + symbols = {modified = ' ', readonly = ' '}, separator = {right = ''} } '' @@ -238,13 +238,17 @@ in { return msg end, icon = ' ', + separator = {left = ''}, } '' '' { "diagnostics", - sources = {'nvim_lsp', 'nvim_diagnostic', 'coc'}, + sources = {'nvim_lsp', 'nvim_diagnostic', 'nvim_diagnostic', 'vim_lsp', 'coc'}, symbols = {error = '󰅙 ', warn = ' ', info = ' ', hint = '󰌵 '}, + colored = true, + update_in_insert = false, + always_visible = false, diagnostics_color = { color_error = { fg = 'red' }, color_warn = { fg = 'yellow' }, @@ -264,16 +268,13 @@ in { 'searchcount', maxcount = 999, timeout = 120, - } '' '' { "branch", icon = ' •', - separator = { - left = '', - }, + separator = {left = ''} } '' ]; @@ -284,7 +285,10 @@ in { description = "active config for: | A | B | C X | Y | (Z) |"; default = [ '' - {"progress"} + { + "progress", + separator = {left = ''} + } '' '' {"location"} @@ -297,7 +301,7 @@ in { unix = '', -- e712 dos = '', -- e70f mac = '', -- e711 - }, + } } '' ];