✨ feat(lazygit): Add lzg shortcut
This commit is contained in:
parent
bb0c1ddac0
commit
6af224728d
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 = {
|
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";
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue