feat(lazygit): Add lzg shortcut

This commit is contained in:
punkfairie 2024-11-03 19:05:12 -08:00
parent bb0c1ddac0
commit 6af224728d
Signed by: punkfairie
GPG key ID: 01823C057725C266

View file

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