Skip to content

Commit

Permalink
Git changes (#331)
Browse files Browse the repository at this point in the history
* Change merge conflict style algorithm

* Setup delta git pager

* Use delta as lazygit's pager
  • Loading branch information
francishamel authored Nov 27, 2024
1 parent da190bb commit 53d8358
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions home-manager/modules/git.nix
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,23 @@
enable = true;
extraConfig = {
init.defaultBranch = "main";
merge.conflictstyle = "diff3";
merge.conflictstyle = "zdiff3";
pull.rebase = true;
rebase = {
autoStash = true;
autosquash = true;
};
rerere.enabled = true;
};
delta = {
enable = true;
options = {
line-numbers = true;
navigate = true;
side-by-side = true;
theme = "Nord";
};
};
};

gh = {
Expand All @@ -44,7 +53,13 @@
};
};

lazygit.enable = true;
lazygit = {
enable = true;
settings = {
git.paging.pager = "${config.programs.git.delta.package}/bin/delta --dark --paging=never";
gui.nerdFontsVersion = "3";
};
};

zsh.shellAliases.lg = "${pkgs.lazygit}/bin/lazygit";
};
Expand Down

0 comments on commit 53d8358

Please sign in to comment.