mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-02-07 06:19:00 +00:00
users/foo-dogsquared/programs/vs-code: integrate as Git merge and diff tool
This commit is contained in:
parent
e910c1d389
commit
523998dbba
@ -33,5 +33,16 @@ in
|
|||||||
"extensions.ignoreRecommendations" = true;
|
"extensions.ignoreRecommendations" = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# We're using Visual Studio Code as a git difftool and mergetool which is
|
||||||
|
# surprisingly good compared to the competition (which is not much).
|
||||||
|
programs.git.extraConfig = {
|
||||||
|
diff.tool = lib.mkDefault "vscode";
|
||||||
|
difftool.vscode.cmd = "code --wait --diff $LOCAL $REMOTE";
|
||||||
|
|
||||||
|
# It has a three-way merge.
|
||||||
|
merge.tool = lib.mkDefault "vscode";
|
||||||
|
mergetool.vscode.cmd = "code --wait --merge $REMOTE $LOCAL $BASE $MERGED";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user