marleyos/home/programs/lazygit.nix

25 lines
413 B
Nix
Raw Normal View History

2024-11-03 19:05:12 -08:00
{ config, lib, ... }:
let
has-delta = config.programs.git.delta.enable;
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-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
}