Commit 8dc7a01

HPCesia <me@hpcesia.com>
2025-10-08 03:46:43
feat: use fork version of helix
1 parent 83ac0c2
Changed files (3)
modules/dev/helix/default.nix
@@ -1,12 +1,16 @@
-{
-  flake.modules.homeManager.dev-helix = _: {
+{inputs, ...}: {
+  flake.modules.homeManager.dev-helix = {pkgs, ...}: {
     programs.helix = {
       enable = true;
+      package = inputs.helix-fork.packages.${pkgs.system}.default;
       settings = {
         editor = {
           line-number = "relative";
           cursorline = true;
-          bufferline = "multiple";
+          bufferline = {
+            render-mode = "multiple";
+            separator = "";
+          };
           color-modes = true;
           trim-trailing-whitespace = true;
           inline-diagnostics.cursor-line = "warning";
flake.lock
@@ -281,6 +281,27 @@
         "type": "github"
       }
     },
+    "helix-fork": {
+      "inputs": {
+        "nixpkgs": [
+          "nixpkgs"
+        ],
+        "rust-overlay": "rust-overlay"
+      },
+      "locked": {
+        "lastModified": 1759611814,
+        "narHash": "sha256-osNaXQGd3MbfPZq1+EM5fiwVRYABULjb3isKDJMsP9g=",
+        "owner": "gj1118",
+        "repo": "helix",
+        "rev": "e136b147e0f8294a0e3885a37844e206694bd53c",
+        "type": "github"
+      },
+      "original": {
+        "owner": "gj1118",
+        "repo": "helix",
+        "type": "github"
+      }
+    },
     "home-manager": {
       "inputs": {
         "nixpkgs": [
@@ -581,6 +602,7 @@
         "disko": "disko",
         "distro-grub-themes": "distro-grub-themes",
         "flake-parts": "flake-parts",
+        "helix-fork": "helix-fork",
         "home-manager": "home-manager",
         "import-tree": "import-tree",
         "nixos-hardware": "nixos-hardware",
@@ -598,6 +620,27 @@
       }
     },
     "rust-overlay": {
+      "inputs": {
+        "nixpkgs": [
+          "helix-fork",
+          "nixpkgs"
+        ]
+      },
+      "locked": {
+        "lastModified": 1740623427,
+        "narHash": "sha256-3SdPQrZoa4odlScFDUHd4CUPQ/R1gtH4Mq9u8CBiK8M=",
+        "owner": "oxalica",
+        "repo": "rust-overlay",
+        "rev": "d342e8b5fd88421ff982f383c853f0fc78a847ab",
+        "type": "github"
+      },
+      "original": {
+        "owner": "oxalica",
+        "repo": "rust-overlay",
+        "type": "github"
+      }
+    },
+    "rust-overlay_2": {
       "inputs": {
         "nixpkgs": [
           "vaultix",
@@ -725,7 +768,7 @@
           "nixpkgs"
         ],
         "pre-commit-hooks": "pre-commit-hooks",
-        "rust-overlay": "rust-overlay"
+        "rust-overlay": "rust-overlay_2"
       },
       "locked": {
         "lastModified": 1752329017,
flake.nix
@@ -18,6 +18,9 @@
     flake-parts.url = "github:hercules-ci/flake-parts";
     flake-parts.inputs.nixpkgs-lib.follows = "nixpkgs";
 
+    helix-fork.url = "github:gj1118/helix";
+    helix-fork.inputs.nixpkgs.follows = "nixpkgs";
+
     home-manager.url = "github:nix-community/home-manager/master";
     home-manager.inputs.nixpkgs.follows = "nixpkgs";