mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-30 22:57:55 +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;
|
||||
};
|
||||
};
|
||||
|
||||
# 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