tests/diff-highlight: add

Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
This commit is contained in:
Austin Horstman 2025-10-16 21:11:43 -05:00
parent 7d03d5fb73
commit 486487b5e9
4 changed files with 74 additions and 0 deletions

View file

@ -0,0 +1,16 @@
{
programs.diff-highlight = {
enable = true;
pagerOpts = [
"--tabs=4"
"-RFX"
];
};
programs.git.enable = true;
nmt.script = ''
# Git config should NOT contain diff-highlight configuration since enableGitIntegration is false by default
assertFileNotRegex home-files/.config/git/config 'pager = .*/diff-highlight'
assertFileNotRegex home-files/.config/git/config 'diffFilter = .*/diff-highlight'
'';
}