1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-11-08 19:46:05 +01:00

git: difftastic: use 'option' attrset

This will avoid having to enumerate and hard-code default values.
This commit is contained in:
Bruno BELANYI 2025-10-06 14:19:38 +00:00 committed by Austin Horstman
parent ed10023224
commit 929535c308
3 changed files with 48 additions and 78 deletions

View file

@ -1,9 +1,9 @@
[diff]
external = "@difftastic@/bin/difft --color always --background dark --display inline --context 5 --tab-width=8 --sort-paths"
external = "@difftastic@/bin/difft --background dark --color always --context 5 --display inline --sort-paths --tab-width 8"
tool = "difftastic"
[difftool "difftastic"]
cmd = "@difftastic@/bin/difft --color always --background dark --display inline --context 5 --tab-width=8 --sort-paths $LOCAL $REMOTE"
cmd = "@difftastic@/bin/difft --background dark --color always --context 5 --display inline --sort-paths --tab-width 8 $LOCAL $REMOTE"
[gpg]
format = "openpgp"

View file

@ -5,14 +5,14 @@
difftastic = {
enable = true;
enableAsDifftool = true;
background = "dark";
color = "always";
context = 5;
display = "inline";
extraArgs = [
"--tab-width=8"
"--sort-paths"
];
options = {
background = "dark";
color = "always";
context = 5;
display = "inline";
tab-width = 8;
sort-paths = true;
};
};
};