configured delta for git

This commit is contained in:
Rouven Seifert 2023-02-25 23:59:19 +01:00
parent 4922c9fcb4
commit a06384c5d3
Signed by: rouven.seifert
GPG key ID: B95E8FE6B11C4D09

View file

@ -1,10 +1,21 @@
{ config, pkgs, ... }: { config, pkgs, ... }:
{ {
home.packages = with pkgs; [ delta ];
programs.git = { programs.git = {
enable = true; enable = true;
userName = "Rouven Seifert"; userName = "Rouven Seifert";
userEmail = "rouven@rfive.de"; userEmail = "rouven@rfive.de";
extraConfig = { extraConfig = {
core.pager = "delta";
interactive.diffFilter = "delta --color-only";
delta = {
navigate = true;
light = false;
side-by-side = true;
line-numbers = true;
};
merge.conflictStyle = "diff3";
diff.colorMoved = "default";
user.signingkey = "B95E8FE6B11C4D09"; user.signingkey = "B95E8FE6B11C4D09";
pull.rebase = false; pull.rebase = false;
init.defaultBranch = "main"; init.defaultBranch = "main";