diff options
author | Minijackson <minijackson@riseup.net> | 2024-07-27 16:10:51 +0200 |
---|---|---|
committer | Minijackson <minijackson@riseup.net> | 2024-07-27 16:10:51 +0200 |
commit | efcb393abbf97fe6cdfaf4ac6355d37ee2212d83 (patch) | |
tree | 17b24bf12a6647dd0bbdacf06c12e606020cb221 /common/commandline | |
parent | 8ea1cc553f28bef4a48fa23a53752e92a131bdcb (diff) | |
download | nixos-config-reborn-efcb393abbf97fe6cdfaf4ac6355d37ee2212d83.tar.gz nixos-config-reborn-efcb393abbf97fe6cdfaf4ac6355d37ee2212d83.zip |
common/git: language aware diffs
Diffstat (limited to 'common/commandline')
-rw-r--r-- | common/commandline/git.nix | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/common/commandline/git.nix b/common/commandline/git.nix index 8c56dbf..9cb07df 100644 --- a/common/commandline/git.nix +++ b/common/commandline/git.nix | |||
@@ -22,7 +22,24 @@ _inputs: | |||
22 | userEmail = "minijackson@riseup.net"; | 22 | userEmail = "minijackson@riseup.net"; |
23 | userName = "Minijackson"; | 23 | userName = "Minijackson"; |
24 | 24 | ||
25 | extraConfig = | 25 | attributes = [ |
26 | "*.cc diff=cpp" | ||
27 | "*.cpp diff=cpp" | ||
28 | "*.css diff=css" | ||
29 | "*.ex diff=elixir" | ||
30 | "*.exs diff=elixir" | ||
31 | "*.go diff=golang" | ||
32 | "*.html diff=html" | ||
33 | "*.java diff=java" | ||
34 | "*.md diff=markdown" | ||
35 | "*.php diff=php" | ||
36 | "*.pl diff=perl" | ||
37 | "*.py diff=python" | ||
38 | "*.rs diff=rust" | ||
39 | "*.tex diff=latex" | ||
40 | ]; | ||
41 | |||
42 | iniContent = | ||
26 | let | 43 | let |
27 | deltaCommand = "${pkgs.gitAndTools.delta}/bin/delta"; | 44 | deltaCommand = "${pkgs.gitAndTools.delta}/bin/delta"; |
28 | in | 45 | in |