From 2d5b2689e20aa8bc442ab789d2875b25f50171b2 Mon Sep 17 00:00:00 2001 From: Aditya Date: Wed, 6 Mar 2024 18:32:00 +0530 Subject: [PATCH] add lualine --- config/default.nix | 2 ++ config/statusline/lualine.nix | 34 ++++++++++++++++++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 config/statusline/lualine.nix diff --git a/config/default.nix b/config/default.nix index b8eaebf..10f2fc7 100644 --- a/config/default.nix +++ b/config/default.nix @@ -40,6 +40,8 @@ ./snippets/luasnip.nix + ./statusline/lualine.nix + ./ui/nvim-notify.nix ]; } diff --git a/config/statusline/lualine.nix b/config/statusline/lualine.nix new file mode 100644 index 0000000..53e4fb3 --- /dev/null +++ b/config/statusline/lualine.nix @@ -0,0 +1,34 @@ +{ + plugins.lualine = { + enable = true; + alwaysDivideMiddle = true; + globalstatus = true; + ignoreFocus = ["neo-tree"]; + extensions = ["fzf"]; + theme = "auto"; + componentSeparators = { + left = "|"; + right = "|"; + }; + sectionSeparators = { + left = "█"; #  + right = "█"; #  + }; + sections = { + lualine_a = ["mode"]; + lualine_b = [ + { + name = "branch"; + icon = ""; + } + "diff" + "diagnostics" + ]; + lualine_c = ["filename"]; + lualine_x = ["filetype"]; + lualine_y = ["progress"]; + lualine_z = [''" " .. os.date("%R")'']; + }; + }; +} +