new difftastic

This commit is contained in:
Cyryl Płotnicki 2022-04-01 22:27:22 +01:00
parent 1ba1b9e5ca
commit 944b4b2f47

View file

@ -1,4 +1,4 @@
{ config, pkgs, ... }: { { config, pkgs, inputs, ... }: {
programs.git = { programs.git = {
enable = true; enable = true;
lfs.enable = true; lfs.enable = true;
@ -15,7 +15,9 @@
colour.ui = true; colour.ui = true;
credential = { helper = "cache"; }; credential = { helper = "cache"; };
diff.algorithm = "histogram"; diff.algorithm = "histogram";
diff.external = "${pkgs.difftastic}/bin/difftastic $LOCAL $REMOTE"; diff.external = "${
inputs.nixpkgs-nixos-unstable.legacyPackages."x86_64-linux".difftastic
}/bin/difft $LOCAL $REMOTE";
diff.renameLimit = 2048; diff.renameLimit = 2048;
diff.renames = "copy"; diff.renames = "copy";
help.autocorrect = 1; help.autocorrect = 1;