2.home-manager/tests/modules/programs/less/custom-options-and-config.nix
2025-12-13 00:08:50 -06:00

30 lines
543 B
Nix

let
config = ''
#command
s back-line
t forw-line
'';
in
{
programs.less = {
enable = true;
inherit config;
options = {
RAW-CONTROL-CHARS = true;
quiet = true;
wheel-lines = [
3
1
];
};
};
nmt.script = ''
assertFileExists home-files/.config/lesskey
assertFileContent home-files/.config/lesskey ${builtins.toFile "less.expected" ''
#env
LESS = --RAW-CONTROL-CHARS --quiet --wheel-lines 3 --wheel-lines 1
${config}''}
'';
}