Skip to content

Commit

Permalink
git: enable mergiraf
Browse files Browse the repository at this point in the history
  • Loading branch information
hyshka committed Dec 2, 2024
1 parent e197912 commit 80c6a63
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions home/cli/git.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
{config, ...}: {
{pkgs, ...}: {
home.packages = [
pkgs.mergiraf
];

programs.git = {
enable = true;
userName = "hyshka";
Expand All @@ -14,11 +18,24 @@
push.autoSetupRemote = true;
status.showUntrackedFiles = "all";
merge.ff = "only";
merge.conflictstyle = "diff3";
merge.conflictstyle = "zdiff3";
mergetool.keepBackup = false;
merge.mergiraf.name = "mergiraf";
merge.mergiraf.driver = "mergiraf merge --git %O %A %B -s %S -x %X -y %Y -p %P";
};
attributes = [
"*.js merge=mergiraf"
"*.jsx merge=mergiraf"
"*.json merge=mergiraf"
"*.yml merge=mergiraf"
"*.yaml merge=mergiraf"
"*.html merge=mergiraf"
];
delta = {
enable = true;
options = {
navigate = true;
};
};
lfs.enable = true;
ignores = [".direnv" "result"];
Expand Down

0 comments on commit 80c6a63

Please sign in to comment.