add delta diff viewer for git
This commit is contained in:
parent
fd42da9e67
commit
202c801e72
1 changed files with 81 additions and 64 deletions
|
|
@ -3,14 +3,19 @@
|
||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
programs.git = {
|
home.packages = with pkgs; [
|
||||||
|
delta # git diff viewer
|
||||||
|
];
|
||||||
|
|
||||||
|
programs = {
|
||||||
|
git = {
|
||||||
enable = true;
|
enable = true;
|
||||||
lfs.enable = true;
|
lfs.enable = true;
|
||||||
|
|
||||||
signing = {
|
signing = {
|
||||||
# key = "F68745A836CA0412";
|
key = "F68745A836CA0412";
|
||||||
# format = "openpgp";
|
format = "openpgp";
|
||||||
# signByDefault = true;
|
signByDefault = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
settings = {
|
settings = {
|
||||||
|
|
@ -29,6 +34,16 @@
|
||||||
core.editor = "hx";
|
core.editor = "hx";
|
||||||
github.user = "cry128";
|
github.user = "cry128";
|
||||||
|
|
||||||
|
# delta diff viewer
|
||||||
|
core.pager = "delta";
|
||||||
|
interactive.diffFilter = "delta --color-only";
|
||||||
|
delta = {
|
||||||
|
navigate = true;
|
||||||
|
line-numbers = true;
|
||||||
|
side-by-side = true;
|
||||||
|
};
|
||||||
|
merge.conflictStyle = "zdiff3";
|
||||||
|
|
||||||
init = {
|
init = {
|
||||||
defaultBranch = "main";
|
defaultBranch = "main";
|
||||||
};
|
};
|
||||||
|
|
@ -71,4 +86,6 @@
|
||||||
# }
|
# }
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue