add helix config

This commit is contained in:
Leonardo Eugênio 2022-07-16 15:42:27 -03:00
parent 92fd4fc65b
commit 4310f791c8

View file

@ -78,7 +78,7 @@ in {
# }; # };
# }; # };
home.packages = with pkgs; [ home.packages = with pkgs; [
helix pkgs.unstable.helix
kanshi kanshi
alacritty alacritty
exa exa
@ -100,10 +100,44 @@ in {
programs.fish.enable = true; programs.fish.enable = true;
programs.helix = { programs.helix = {
enable = true; enable = true;
package = pkgs.unstable.helix;
settings = { settings = {
theme = "gruvbox"; 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 = { programs.firefox = {
enable = true; enable = true;
package = pkgs.firefox; package = pkgs.firefox;