From 0e48b9697d4f1d236c3430f3f90b95ff970b6dec Mon Sep 17 00:00:00 2001 From: traxys Date: Wed, 15 Dec 2021 10:23:34 +0100 Subject: [PATCH] colored delta & gitignore --- gitignore | 2 ++ home.nix | 21 ++++++++++++++++++--- 2 files changed, 20 insertions(+), 3 deletions(-) create mode 100644 gitignore diff --git a/gitignore b/gitignore new file mode 100644 index 0000000..8e10828 --- /dev/null +++ b/gitignore @@ -0,0 +1,2 @@ +.cache +compile_commands.json diff --git a/home.nix b/home.nix index a24e51c..096f2f5 100644 --- a/home.nix +++ b/home.nix @@ -106,11 +106,25 @@ in git = { enable = true; - delta = { - enable = true; - }; userName = "Quentin Boyer"; userEmail = localinfo.email; + delta = { + enable = true; + options = { + line-numbers = true; + syntax-theme = "Dracula"; + plus-style = "auto \"#121bce\""; + plus-emph-style = "auto \"#6083eb\""; + }; + }; + extraConfig = { + diff = { + algorithm = "histogram"; + }; + core = { + excludesfile = "${localinfo.homeDir}/.gitignore"; + }; + }; }; zoxide = { @@ -174,6 +188,7 @@ in }; ".zprofile".source = ./zprofile; ".p10k.zsh".source = ./p10k.zsh; + ".gitignore".source = ./gitignore; "bin" = { source = ./scripts; recursive = true;