From 4310f791c84e17cf6605060735e97071d12018be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leonardo=20Eug=C3=AAnio?= Date: Sat, 16 Jul 2022 15:42:27 -0300 Subject: [PATCH] add helix config --- user/home.nix | 36 +++++++++++++++++++++++++++++++++++- 1 file changed, 35 insertions(+), 1 deletion(-) diff --git a/user/home.nix b/user/home.nix index e1b93b8..956c873 100644 --- a/user/home.nix +++ b/user/home.nix @@ -78,7 +78,7 @@ in { # }; # }; home.packages = with pkgs; [ - helix + pkgs.unstable.helix kanshi alacritty exa @@ -100,10 +100,44 @@ in { programs.fish.enable = true; programs.helix = { enable = true; + package = pkgs.unstable.helix; settings = { theme = "gruvbox"; + editor = { + whitespace.render = "all"; + whitespace.characters = { + space = " "; + tab = "▏"; + newline = "¬"; + }; + }; + keys.normal = { + # basic movement + n = "move_char_left"; + e = "move_line_down"; + i = "move_line_up"; + o = "move_char_right"; + # search + l = "search_next"; + L = "search_prev"; + # edits + s = "insert_mode"; + # open newline + h = "open_below"; + H = "open_above"; + # selections + k = "select_regex"; + K = "split_selection"; + "C-k" = "split_selection_on_newline"; + # goto mode + g.n = "goto_line_start"; + g.o = "goto_line_start"; + }; }; }; + home.sessionVariables = { + EDITOR = "hx"; + }; programs.firefox = { enable = true; package = pkgs.firefox;