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:
parent
ed10023224
commit
929535c308
3 changed files with 48 additions and 78 deletions
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue