about summary refs log tree commit diff stats
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--modules/home/conf/nvim/plgs/lualine/default.nix121
1 files changed, 64 insertions, 57 deletions
diff --git a/modules/home/conf/nvim/plgs/lualine/default.nix b/modules/home/conf/nvim/plgs/lualine/default.nix
index 0b789558..54d20380 100644
--- a/modules/home/conf/nvim/plgs/lualine/default.nix
+++ b/modules/home/conf/nvim/plgs/lualine/default.nix
@@ -51,64 +51,71 @@
     };
   in {
     enable = true;
-    iconsEnabled = true;
-    theme = "nightfox";
-    componentSeparators = {
-      left = "";
-      right = "";
-    };
-    sectionSeparators = {
-      left = "";
-      right = "";
-    };
-    disabledFiletypes = {
-      statusline = [];
-      winbar = [];
-    };
-    ignoreFocus = [];
-    alwaysDivideMiddle = true;
-    globalstatus = false;
-    refresh = {
-      statusline = 1000;
-      tabline = 1000;
-      winbar = 1000;
-    };
-    sections = {
-      lualine_a = ["mode"];
-      lualine_b = [
-        {
-          name = "FugitiveHead";
-          icon = "";
-        }
-        "diff"
-        "diagnostics"
-      ];
-      lualine_c = ["filename"];
-      lualine_x = ["searchcount" "filetype"];
-      lualine_y = [
-        "encoding"
-        "fileformat"
-        {name = get_mixed_indent;}
-        {name = get_trailing_whitespace;}
+
+    settings = {
+      options = {
+        iconsEnabled = true;
+        theme = "nightfox";
+      };
+
+      # TODO: add all installed and supported extensions here
+      extensions = [
+        "toggleterm"
+        #"fugitive" # TODO: maybe add this?
       ];
-      lualine_z = [{name = get_location_of_file;}];
-    };
-    inactiveSections = {
-      lualine_a = [];
-      lualine_b = [];
-      lualine_c = ["filename"];
-      lualine_x = [{name = get_location_of_file;}];
-      lualine_y = [];
-      lualine_z = [];
-    };
-    tabline = {};
-    winbar = {};
-    inactiveWinbar = {};
 
-    # TODO: add all installed and supported extensions here
-    extensions = [
-      "toggleterm"
-      #"fugitive" # TODO: maybe add this?
-    ];
+      componentSeparators = {
+        left = "";
+        right = "";
+      };
+      sectionSeparators = {
+        left = "";
+        right = "";
+      };
+      disabledFiletypes = {
+        statusline = [];
+        winbar = [];
+      };
+      ignoreFocus = [];
+      alwaysDivideMiddle = true;
+      globalstatus = false;
+      refresh = {
+        statusline = 1000;
+        tabline = 1000;
+        winbar = 1000;
+      };
+      sections = {
+        lualine_a = ["mode"];
+        lualine_b = [
+          {
+            __raw = ''
+              {'FugitiveHead',  icon = ""}
+            '';
+          }
+          "diff"
+          "diagnostics"
+        ];
+        lualine_c = ["filename"];
+        lualine_x = ["searchcount" "filetype"];
+        lualine_y = [
+          "encoding"
+          "fileformat"
+          get_mixed_indent
+          get_trailing_whitespace
+        ];
+        lualine_z = [get_location_of_file];
+      };
+      inactiveSections = {
+        lualine_a = [];
+        lualine_b = [];
+        lualine_c = ["filename"];
+        lualine_x = [get_location_of_file];
+        lualine_y = [];
+        lualine_z = [];
+      };
+      tabline = {};
+      winbar = {};
+      inactiveWinbar = {};
+    };
   };
 }