mirror of
https://github.com/srid/nixos-config.git
synced 2026-05-11 17:36:07 +08:00
Use home-manager module for delta
This commit is contained in:
parent
ffb5e3f8ed
commit
a9407f1e0d
2 changed files with 9 additions and 20 deletions
11
home/git.nix
11
home/git.nix
|
|
@ -1,7 +1,5 @@
|
|||
{ pkgs, config, flake, ... }:
|
||||
{
|
||||
imports = [ ./git_delta.nix ];
|
||||
|
||||
home.packages = [ pkgs.git-lfs ];
|
||||
|
||||
programs.git = {
|
||||
|
|
@ -20,6 +18,15 @@
|
|||
pu = "push";
|
||||
};
|
||||
ignores = [ "*~" "*.swp" ];
|
||||
delta = {
|
||||
enable = true;
|
||||
options = {
|
||||
features = "decorations";
|
||||
navigate = true;
|
||||
light = false;
|
||||
side-by-side = true;
|
||||
};
|
||||
};
|
||||
extraConfig = {
|
||||
init.defaultBranch = "master"; # https://srid.ca/unwoke
|
||||
core.editor = "nvim";
|
||||
|
|
|
|||
|
|
@ -1,18 +0,0 @@
|
|||
{ pkgs, lib, ... }:
|
||||
|
||||
# https://github.com/dandavison/delta#get-started
|
||||
# https://dandavison.github.io/delta/configuration.html
|
||||
{
|
||||
programs.git.extraConfig = {
|
||||
core.pager = lib.getExe pkgs.delta;
|
||||
interactive.diffFilter = "${lib.getExe pkgs.delta} --color-only --features=interactive";
|
||||
delta = {
|
||||
features = "decorations";
|
||||
navigate = true;
|
||||
light = false;
|
||||
side-by-side = true;
|
||||
};
|
||||
merge.conflictstyle = "diff3";
|
||||
diff.colorMoved = "default";
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue