From aad30182e6f4e79e7cbe74e7421ac7dc9a240e2c Mon Sep 17 00:00:00 2001 From: jasmine Date: Tue, 6 Aug 2024 16:05:45 +0800 Subject: [PATCH] Update lualine --- config/plugins/ui/lualine.nix | 44 +++++++++++++++++------------------ 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/config/plugins/ui/lualine.nix b/config/plugins/ui/lualine.nix index c52baf7..49be531 100644 --- a/config/plugins/ui/lualine.nix +++ b/config/plugins/ui/lualine.nix @@ -16,7 +16,11 @@ sectionSeparators = { left = ""; right = ""; }; # Display components in tabline - tabline.lualine_a = [ { name = "buffers"; } ]; + tabline = { + lualine_a = [ { name = "buffers"; } ]; + lualine_x = [ { name = "hostname"; } ]; + lualine_z = [ { name = "encoding"; } ]; + }; # Lualine has sections as shown below # +-------------------------------------------------+ @@ -24,7 +28,7 @@ # +-------------------------------------------------+ sections = { # Section A - lualine_a = [ { name = "mode"; icon = ""; } ]; + lualine_a = [ { name = "mode"; } ]; # Section B lualine_b = [ @@ -34,34 +38,30 @@ # Git diff status { name = "diff"; extraConfig.symbols = { - added = " "; - modified = " "; - removed = " "; - }; - } - - # Diagnostic count from nvim_lsp - { name = "diagnostics"; - extraConfig = { - sources = [ "nvim_lsp" ]; - symbols = { - error = " "; - warn = " "; - info = " "; - hint = "󰝶 "; - }; + added = "+"; + modified = "~"; + removed = "-"; }; } ]; # Section C - lualine_c = [ { name = "filename"; extraConfig = { path = 1; }; } ]; + lualine_c = [ { name = "filename"; } ]; # Section X lualine_x = [ - { name = "encoding"; } - { name = "fileformat"; } - { name = "filetype"; } + # Diagnostic count from nvim_lsp + { name = "diagnostics"; + extraConfig = { + sources = [ "nvim_lsp" ]; + symbols = { + error = "error:"; + warn = "warning:"; + info = "info:"; + hint = "hint:"; + }; + }; + } ]; # Section Y