marleyos/home/programs/lazygit.nix

27 lines
566 B
Nix
Raw Normal View History

2024-11-03 19:05:12 -08:00
{ config, lib, ... }:
let
has-delta = config.programs.git.delta.enable;
2024-11-14 19:01:47 -08:00
has-difftastic = config.programs.git.difftastic.enable;
2024-11-03 19:05:12 -08:00
in
{
2024-11-02 13:23:03 -07:00
programs.lazygit = {
enable = true;
settings = {
gui.nerdFontsVersion = 3;
git.paging = {
colorArg = "always";
2024-11-03 19:05:12 -08:00
pager = lib.mkIf has-delta "delta --paging=never --features=arctic-fox";
2024-11-14 19:01:47 -08:00
externalDiffCommand = lib.mkIf has-difftastic "difft --color=always --display=inline";
2024-11-02 13:23:03 -07:00
};
os.editPreset = "nvim-remote";
};
};
2024-11-03 19:05:12 -08:00
home.shellAbbrs = {
lzg = "lazygit";
};
2024-11-02 13:23:03 -07:00
}