From 726104ac36c9660cd10037878677a6eaf1601ca6 Mon Sep 17 00:00:00 2001 From: Soispha Date: Fri, 25 Aug 2023 23:01:06 +0200 Subject: 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. --- home-manager/soispha/config/git/default.nix | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'home-manager/soispha/config') 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"; }; -- cgit 1.4.1