difftastic: add jujutsu integration
This commit is contained in:
parent
eec72f1278
commit
02d763228d
1 changed files with 23 additions and 0 deletions
|
|
@ -104,6 +104,16 @@ in
|
|||
'';
|
||||
};
|
||||
};
|
||||
|
||||
jujutsu = {
|
||||
enable = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
description = ''
|
||||
Whether to enable jujutsu integration for difftastic.
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
config =
|
||||
|
|
@ -142,5 +152,18 @@ in
|
|||
];
|
||||
};
|
||||
})
|
||||
|
||||
(mkIf (cfg.enable && cfg.jujutsu.enable) {
|
||||
programs.jujutsu.settings.ui.diff-formatter = [
|
||||
(lib.getExe cfg.package)
|
||||
]
|
||||
++ (lib.cli.toCommandLineGNU { } cfg.options)
|
||||
++ [
|
||||
"--color=always"
|
||||
"--sort-paths"
|
||||
"$left"
|
||||
"$right"
|
||||
];
|
||||
})
|
||||
];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue