mirror of
https://github.com/harivansh-afk/nix.git
synced 2026-04-20 08:04:47 +00:00
config
This commit is contained in:
parent
f74819de9d
commit
02c996d21a
11 changed files with 592 additions and 99 deletions
58
home/git.nix
Normal file
58
home/git.nix
Normal file
|
|
@ -0,0 +1,58 @@
|
|||
{...}: {
|
||||
programs.git = {
|
||||
enable = true;
|
||||
lfs.enable = true;
|
||||
|
||||
settings = {
|
||||
user = {
|
||||
name = "Harivansh Rathi";
|
||||
email = "rathiharivansh@gmail.com";
|
||||
};
|
||||
|
||||
advice.detachedHead = false;
|
||||
|
||||
core = {
|
||||
pager = "diff-so-fancy | less --tabs=4 -RFX";
|
||||
editor = "nvim";
|
||||
};
|
||||
|
||||
interactive.diffFilter = "diff-so-fancy --patch";
|
||||
|
||||
color = {
|
||||
ui = true;
|
||||
"diff-highlight" = {
|
||||
oldNormal = "red bold";
|
||||
oldHighlight = "red bold 52";
|
||||
newNormal = "green bold";
|
||||
newHighlight = "green bold 22";
|
||||
};
|
||||
diff = {
|
||||
meta = 11;
|
||||
frag = "magenta bold";
|
||||
func = "146 bold";
|
||||
commit = "yellow bold";
|
||||
old = "red bold";
|
||||
new = "green bold";
|
||||
whitespace = "red reverse";
|
||||
};
|
||||
};
|
||||
|
||||
delta = {
|
||||
"syntax-theme" = "gruvbox-dark";
|
||||
"hunk-header-style" = "omit";
|
||||
"minus-style" = ''syntax "#3c1f1e"'';
|
||||
"minus-emph-style" = ''syntax "#72261d"'';
|
||||
"plus-style" = ''syntax "#1d2c1d"'';
|
||||
"plus-emph-style" = ''syntax "#2b4a2b"'';
|
||||
};
|
||||
|
||||
push.autoSetupRemote = true;
|
||||
|
||||
"diff-so-fancy" = {
|
||||
markEmptyLines = true;
|
||||
stripLeadingSymbols = true;
|
||||
useUnicodeRuler = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue