feat: use delta instead of difftastic
This commit is contained in:
parent
41fc5bb328
commit
022abfffc5
2 changed files with 26 additions and 6 deletions
|
@ -24,8 +24,21 @@
|
||||||
signByDefault = true;
|
signByDefault = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
difftastic = {
|
delta = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
options = {
|
||||||
|
dark = true;
|
||||||
|
theme = "Solarized (dark)";
|
||||||
|
side-by-side = true;
|
||||||
|
line-numbers = true;
|
||||||
|
true-color = "always";
|
||||||
|
plus-style = "syntax \"#003800\"";
|
||||||
|
minus-style = "syntax \"#380000\"";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
difftastic = {
|
||||||
|
enable = false;
|
||||||
background = "light";
|
background = "light";
|
||||||
display = "side-by-side-show-both";
|
display = "side-by-side-show-both";
|
||||||
enableAsDifftool = true;
|
enableAsDifftool = true;
|
||||||
|
@ -41,7 +54,6 @@
|
||||||
core = {
|
core = {
|
||||||
editor = "nvim";
|
editor = "nvim";
|
||||||
fsmonitor = true;
|
fsmonitor = true;
|
||||||
pager = "less -FX";
|
|
||||||
untrackedCache = true;
|
untrackedCache = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,15 @@
|
||||||
{ pkgs, lib, ... }:
|
|
||||||
|
|
||||||
{
|
{
|
||||||
nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [
|
pkgs,
|
||||||
"gh-copilot"
|
lib,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
nixpkgs.config.allowUnfreePredicate = pkg:
|
||||||
|
builtins.elem (lib.getName pkg) [
|
||||||
|
"gh-copilot"
|
||||||
|
];
|
||||||
|
|
||||||
|
home.packages = with pkgs; [
|
||||||
|
delta
|
||||||
];
|
];
|
||||||
|
|
||||||
programs = {
|
programs = {
|
||||||
|
@ -29,6 +36,7 @@
|
||||||
width = 64;
|
width = 64;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
pager.diff = "delta";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue