From 75fa9b8dc7e88e465ac4f5cffad7c29bffc94fe5 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Felix=20Schr=C3=B6ter?= <dev@felschr.com>
Date: Sun, 9 Apr 2023 21:33:23 +0200
Subject: [PATCH] feat(helix): switch to unstable & add settings

---
 home/editors/helix/default.nix | 16 ++++++++++++++--
 1 file changed, 14 insertions(+), 2 deletions(-)

diff --git a/home/editors/helix/default.nix b/home/editors/helix/default.nix
index 6d74ead..18d5182 100644
--- a/home/editors/helix/default.nix
+++ b/home/editors/helix/default.nix
@@ -4,7 +4,19 @@
   # TODO use tree-sitter grammars from nixpkgs
   programs.helix = {
     enable = true;
-    languages = [ ];
-    settings = { theme = "base16_default_dark"; };
+    package = pkgs.unstable.helix;
+    settings = {
+      theme = "dark_plus";
+      keys = {
+        normal = {
+          "H" = "goto_line_start";
+          "L" = "goto_line_end";
+        };
+        select = {
+          "H" = "goto_line_start";
+          "L" = "goto_line_end";
+        };
+      };
+    };
   };
 }