feat(lazygit): Add lzg shortcut

This commit is contained in:
punkfairie 2024-11-03 19:05:12 -08:00
parent 5899f9122b
commit 7c039f8398

View file

@ -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";
};
}