flake/modules/home/terminal/gh.nix
2026-03-03 15:49:22 +00:00

29 lines
527 B
Nix

{
pkgs,
lib,
config,
...
}: {
options.mods.terminal.gh.enable = lib.mkEnableOption "enables gh and gh-dash";
config = lib.mkIf config.mods.terminal.gh.enable {
programs.gh = {
enable = true;
extensions = [pkgs.gh-dash];
};
programs.gh-dash = {
enable = true;
settings = {
keybindings = {
prs = [
{
key = "d";
command = "nvim -c 'Octo review {{.PrNumber}}'";
}
];
};
};
};
};
}