1

refactor: move helix into its own module

This commit is contained in:
Himadri Bhattacharjee
2024-04-16 10:53:50 +05:30
parent 806716cb21
commit 3e129d796d
2 changed files with 22 additions and 21 deletions

14
hosts/default/helix.nix Normal file
View File

@@ -0,0 +1,14 @@
{pkgs, ... }: {
programs.helix = {
enable = true;
settings = {
theme = "base16_terminal";
editor.cursor-shape.insert = "bar";
editor.line-number = "relative";
editor.idle-timeout = 0;
keys.normal."X" = [ "extend_line_up" "extend_to_line_bounds" ];
keys.select."X" = [ "extend_line_up" "extend_to_line_bounds" ];
keys.normal."C-g" = [ ":new" ":insert-output ${pkgs.lazygit}/bin/lazygit" ":buffer-close!" ":redraw" ];
};
};
}

View File

@@ -3,16 +3,17 @@
{
imports = [
# ./gnome.nix
./kde.nix
./python.nix
./rust.nix
./aws.nix
./benchmarking.nix
./ctf.nix
./gaming.nix
./notetaking.nix
./benchmarking.nix
./aws.nix
./git.nix
# ./gnome.nix
./helix.nix
./kde.nix
./notetaking.nix
./python.nix
./rust.nix
./shell.nix
];
@@ -52,20 +53,6 @@
};
programs = {
helix = {
enable = true;
settings = {
theme = "adwaita-dark";
editor.cursor-shape.insert = "bar";
editor.line-number = "relative";
editor.idle-timeout = 0;
keys.normal."X" = [ "extend_line_up" "extend_to_line_bounds" ];
keys.select."X" = [ "extend_line_up" "extend_to_line_bounds" ];
keys.normal."C-g" = [ ":new" ":insert-output ${pkgs.lazygit}/bin/lazygit" ":buffer-close!" ":redraw" ];
};
};
direnv = {
enable = true;
nix-direnv.enable = true;