punkfairie
15372b7726
There was little point to doing this anyway as project-wide find & replace is trivial.
39 lines
793 B
Nix
39 lines
793 B
Nix
{
|
|
lib,
|
|
config,
|
|
namespace,
|
|
...
|
|
}:
|
|
let
|
|
inherit (lib) mkIf;
|
|
inherit (lib.marleyos) mkEnableModule;
|
|
|
|
cfg = config.marleyos.programs.lazygit;
|
|
has-delta = config.programs.git.delta.enable;
|
|
has-difft = config.programs.git.difftastic.enable;
|
|
in
|
|
{
|
|
options = mkEnableModule "programs.lazygit";
|
|
|
|
config = mkIf cfg.enable {
|
|
programs.lazygit = {
|
|
enable = true;
|
|
|
|
settings = {
|
|
gui.nerdFontsVersion = 3;
|
|
|
|
git.paging = {
|
|
colorArg = "always";
|
|
pager = lib.mkIf has-delta "delta --paging=never --features=arctic-fox";
|
|
externalDiffCommand = lib.mkIf has-difft "difft --color=always --display=inline";
|
|
};
|
|
|
|
os.editPreset = "nvim-remote";
|
|
};
|
|
};
|
|
|
|
home.shellAbbrs = {
|
|
lzg = "lazygit";
|
|
};
|
|
};
|
|
}
|