users/foo-dogsquared: fix config errors

This commit is contained in:
Gabriel Arazas 2023-12-19 18:00:22 +08:00
parent 8ec51bff48
commit 543cb31a20
No known key found for this signature in database
GPG Key ID: ADE0C41DAB221FCC
2 changed files with 5 additions and 5 deletions

View File

@ -28,7 +28,7 @@ in
editorconfig.editorconfig
];
settings = {
userSettings = {
"extensions.ignoreRecommendations" = true;
};
};

View File

@ -38,17 +38,17 @@ in
diffoscope
];
programs.git.settings = {
config.difftool.prompt = false;
programs.git.extraConfig = {
difftool.prompt = false;
# Yeah, let's use this oversized diff tool, shall we?
# Also, this config is based from this tip.
# https://lists.reproducible-builds.org/pipermail/diffoscope/2016-April/000193.html
config.difftool."diffoscope".cmd = ''
difftool."diffoscope".cmd = ''
"if [ $LOCAL = /dev/null ]; then diffoscope --new-file $REMOTE; else diffoscope $LOCAL $REMOTE; fi"
'';
config.difftool."diffoscope-html".cmd = ''
difftool."diffoscope-html".cmd = ''
"if [ $LOCAL = /dev/null ]; then diffoscope --new-file $REMOTE --html - | cat; else diffoscope $LOCAL $REMOTE --html - | cat; fi"
'';
};