✨ feat(lazygit): Add lzg shortcut
This commit is contained in:
parent
5899f9122b
commit
7c039f8398
1 changed files with 9 additions and 3 deletions
|
@ -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";
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue