mirror of
https://codeberg.org/muon/home.git
synced 2026-03-08 03:25:16 +00:00
29 lines
527 B
Nix
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}}'";
|
|
}
|
|
];
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|