1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-12-12 03:51:07 +01:00
home-manager/tests/modules/programs/pistol/config.nix
Austin Horstman cba2f9ce95 treewide: reformat nixfmt-rfc-style
Reformat repository using new nixfmt-rfc-style.
2025-04-08 08:50:05 -07:00

23 lines
760 B
Nix

{
programs.pistol = {
enable = true;
config = {
"text/*" =
"bat --paging=never --color=always --style=auto --wrap=character --terminal-width=%pistol-extra0% --line-range=1:%pistol-extra1% %pistol-filename%";
"application/json" =
"bat --paging=never --color=always --style=auto --wrap=character --terminal-width=%pistol-extra0% --line-range=1:%pistol-extra1% %pistol-filename%";
};
};
test.asserts.assertions.expected = [
(
let
offendingFile = toString ./config.nix;
in
''
The option definition `programs.pistol.config' in `${offendingFile}' no longer has any effect; please remove it.
Pistol is now configured with programs.pistol.associations.
''
)
];
}