home/git: misc added settings
This commit is contained in:
@ -116,7 +116,12 @@ in
|
|||||||
|
|
||||||
extraConfig = {
|
extraConfig = {
|
||||||
core = {
|
core = {
|
||||||
whitespace = "space-before-tab,-indent-with-non-tab,trailing-space";
|
whitespace = lib.concatStringsSep "," [
|
||||||
|
"space-before-tab"
|
||||||
|
"-indent-with-non-tab"
|
||||||
|
"trailing-space"
|
||||||
|
"blank-at-eof"
|
||||||
|
];
|
||||||
untrackedCache = true;
|
untrackedCache = true;
|
||||||
editor = "nvim";
|
editor = "nvim";
|
||||||
};
|
};
|
||||||
@ -181,6 +186,7 @@ in
|
|||||||
diff = {
|
diff = {
|
||||||
mnemonicPrefix = true;
|
mnemonicPrefix = true;
|
||||||
renames = true;
|
renames = true;
|
||||||
|
compactionHeuristic = true;
|
||||||
tool = "nvimdiff";
|
tool = "nvimdiff";
|
||||||
submodule = "log";
|
submodule = "log";
|
||||||
};
|
};
|
||||||
@ -223,6 +229,21 @@ in
|
|||||||
|
|
||||||
"url \"${lib.head github-uri-prefixes}\"".insteadOf = lib.tail github-uri-prefixes;
|
"url \"${lib.head github-uri-prefixes}\"".insteadOf = lib.tail github-uri-prefixes;
|
||||||
|
|
||||||
|
"url \"git@gist.github.com:\"".insteadOf = [
|
||||||
|
"git://gist.github.com/"
|
||||||
|
"https://gist.github.com/"
|
||||||
|
];
|
||||||
|
|
||||||
|
"url \"aur@aur.archlinux.org:\"".insteadOf = [
|
||||||
|
"aur:"
|
||||||
|
"https://aur.archlinux.org/"
|
||||||
|
];
|
||||||
|
|
||||||
|
gc = {
|
||||||
|
reflogExpire = "90 days";
|
||||||
|
reflogExpireUnreachable = "90 days";
|
||||||
|
};
|
||||||
|
|
||||||
web.browser = "google-chrome-stable";
|
web.browser = "google-chrome-stable";
|
||||||
|
|
||||||
"filter \"lfs\"" = {
|
"filter \"lfs\"" = {
|
||||||
|
Reference in New Issue
Block a user