diff options
author | Soispha <soispha@vhack.eu> | 2023-08-25 23:01:06 +0200 |
---|---|---|
committer | Soispha <soispha@vhack.eu> | 2023-08-25 23:01:06 +0200 |
commit | 726104ac36c9660cd10037878677a6eaf1601ca6 (patch) | |
tree | 66745562649c3c94793c355d15e17d714bbdd959 /home-manager/soispha/config/git | |
parent | Feat(hm/conf/git): Mark moved code in diffs and delta for merge conflicts (diff) | |
download | nixos-config-726104ac36c9660cd10037878677a6eaf1601ca6.zip |
Fix(hm/conf/git): Add markers to diffs when on laptop
It is very common, that I'm in a situation with bad contrast on the laptop screen (for example when in direct sunlight). To remedy the fact, that I can't see the colours in these situations, the plus and minus marks were added.
Diffstat (limited to 'home-manager/soispha/config/git')
-rw-r--r-- | home-manager/soispha/config/git/default.nix | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/home-manager/soispha/config/git/default.nix b/home-manager/soispha/config/git/default.nix index cc505832..16c16863 100644 --- a/home-manager/soispha/config/git/default.nix +++ b/home-manager/soispha/config/git/default.nix @@ -1,4 +1,8 @@ -{...}: let +{ + lib, + nixosConfig, + ... +}: let gitIgnoreFile = ./git_ignore.git; gitTemplateFile = ./git_template.git; in { @@ -70,6 +74,10 @@ in { file-decoration-style = "none"; file-style = "bold yellow ul"; }; + keep-plus-minus-markers = + if nixosConfig.soispha.laptop.enable + then true + else false; features = "decorations"; whitespace-error-style = "22 reverse"; }; |