feat(git): Delta -> Difftastic
This commit is contained in:
parent
d184d54b07
commit
84ddc9e3d2
2 changed files with 23 additions and 10 deletions
|
@ -52,17 +52,28 @@
|
|||
# ██████╔╝███████╗███████╗██║ ██║ ██║
|
||||
# ╚═════╝ ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═╝
|
||||
|
||||
delta = {
|
||||
enable = true;
|
||||
# delta = {
|
||||
# enable = true;
|
||||
#
|
||||
# options = {
|
||||
# navigate = true;
|
||||
# # TODO: Add to rose-pine-nix
|
||||
# syntax-theme = "rose-pine";
|
||||
# features = "mellow-barbet";
|
||||
# true-color = "always";
|
||||
# hyperlinks = true;
|
||||
# };
|
||||
# };
|
||||
|
||||
options = {
|
||||
navigate = true;
|
||||
# TODO: Add to rose-pine-nix
|
||||
syntax-theme = "rose-pine";
|
||||
features = "mellow-barbet";
|
||||
true-color = "always";
|
||||
hyperlinks = true;
|
||||
};
|
||||
# ██████╗ ██╗███████╗███████╗████████╗ █████╗ ███████╗████████╗██╗ ██████╗
|
||||
# ██╔══██╗██║██╔════╝██╔════╝╚══██╔══╝██╔══██╗██╔════╝╚══██╔══╝██║██╔════╝
|
||||
# ██║ ██║██║█████╗ █████╗ ██║ ███████║███████╗ ██║ ██║██║
|
||||
# ██║ ██║██║██╔══╝ ██╔══╝ ██║ ██╔══██║╚════██║ ██║ ██║██║
|
||||
# ██████╔╝██║██║ ██║ ██║ ██║ ██║███████║ ██║ ██║╚██████╗
|
||||
# ╚═════╝ ╚═╝╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝╚══════╝ ╚═╝ ╚═╝ ╚═════╝
|
||||
|
||||
difftastic = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
# ██████╗ ██████╗ ███╗ ██╗███████╗██╗ ██████╗
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
{ config, lib, ... }:
|
||||
let
|
||||
has-delta = config.programs.git.delta.enable;
|
||||
has-difftastic = config.programs.git.difftastic.enable;
|
||||
in
|
||||
{
|
||||
programs.lazygit = {
|
||||
|
@ -12,6 +13,7 @@ in
|
|||
git.paging = {
|
||||
colorArg = "always";
|
||||
pager = lib.mkIf has-delta "delta --paging=never --features=arctic-fox";
|
||||
externalDiffCommand = lib.mkIf has-difftastic "difft --color=always --display=inline";
|
||||
};
|
||||
|
||||
os.editPreset = "nvim-remote";
|
||||
|
|
Loading…
Reference in a new issue