depot/third_party/home-manager/tests/modules/programs/pistol/config.nix
Default email 2eafb8192e Project import generated by Copybara.
GitOrigin-RevId: 176e455371a8371586e8a3ff0d56ee9f3ca2324e
2023-01-10 02:35:00 -07:00

21 lines
754 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.stubs.pistol = { };
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.
'')
];
}