diff --git a/home-manager/git.nix b/home-manager/git.nix index 8a51dd0..e0446a4 100644 --- a/home-manager/git.nix +++ b/home-manager/git.nix @@ -22,6 +22,12 @@ rebase.autostash = true; rerere.enabled = true; worktree.guessRemote = true; + + diff.external = "difft --background light"; + diff.tool = "difftastic"; + difftool.prompt = false; + difftool.difftastic.cmd = "difft --background light \"$LOCAL\" \"$REMOTE\""; + pager.difftool = true; }; aliases = { diff --git a/home-mandlm.nix b/home-mandlm.nix index b804b56..a3e07a2 100644 --- a/home-mandlm.nix +++ b/home-mandlm.nix @@ -26,6 +26,7 @@ tree light element-desktop + difftastic ]; stateVersion = "22.05";