flake/modules/home/terminal/development.nix
2024-06-12 15:43:14 +00:00

39 lines
944 B
Nix

{ pkgs, lib, config, ... }: {
options.mods.terminal.development.enable =
lib.mkEnableOption "enables cli editor";
config = lib.mkIf config.mods.terminal.development.enable {
# home.packages = with pkgs; [];
programs.direnv = {
enable = true;
nix-direnv.enable = true;
};
home.sessionVariables.EDITOR = "hx";
zsh.sessionVariables.EDITOR = "hx";
programs.helix = {
enable = true;
settings = {
keys.normal = {
"esc" = ["collapse_selection" "keep_primary_selection"];
};
editor = {
line-number = "relative";
completion-replace = true;
bufferline = "always";
rulers = [80];
soft-wrap.enable = true;
indent-guides.render = true;
cursor-shape = {
normal = "block";
insert = "bar";
select = "underline";
};
};
};
};
};
}