From ffc57fd1e3c73856257a7da8735415955db2f9b0 Mon Sep 17 00:00:00 2001 From: Florian RICHER Date: Wed, 16 Jul 2025 14:31:07 +0200 Subject: [PATCH] git,lazygit: Enable difftastic --- modules/home/shell/git.nix | 1 + modules/home/shell/lazygit.nix | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/home/shell/git.nix b/modules/home/shell/git.nix index 85a0866..513d105 100644 --- a/modules/home/shell/git.nix +++ b/modules/home/shell/git.nix @@ -14,6 +14,7 @@ in programs.git = { enable = true; lfs.enable = true; + difftastic.enable = true; userName = "Florian RICHER"; userEmail = "florian.richer@protonmail.com"; diff --git a/modules/home/shell/lazygit.nix b/modules/home/shell/lazygit.nix index c6ca0a0..b35aeaa 100644 --- a/modules/home/shell/lazygit.nix +++ b/modules/home/shell/lazygit.nix @@ -15,7 +15,10 @@ in enable = true; settings = { - git.pull.mode = "rebase"; + git = { + pull.mode = "rebase"; + paging.externalDiffCommand = "difft --color=always"; + }; }; }; };