diff --git a/home/programs/lazygit.nix b/home/programs/lazygit.nix index 56d70a0..39a9b6d 100644 --- a/home/programs/lazygit.nix +++ b/home/programs/lazygit.nix @@ -1,4 +1,7 @@ -{ ... }: +{ config, lib, ... }: +let + has-delta = config.programs.git.delta.enable; +in { programs.lazygit = { enable = true; @@ -8,11 +11,14 @@ git.paging = { colorArg = "always"; - # TODO: only set this if delta is installed - pager = "delta --paging=never --features=arctic-fox"; + pager = lib.mkIf has-delta "delta --paging=never --features=arctic-fox"; }; os.editPreset = "nvim-remote"; }; }; + + home.shellAbbrs = { + lzg = "lazygit"; + }; }