1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-12-27 04:09:47 +01:00
home-manager/tests/modules/programs/bat
Leah Amelia Chen df3f8d4e8b
bat: support boolean flags in config
Previously, users cannot enable boolean flags like `--show-all` in bat's
config since all options were expected to be either a string, or a list
of strings. With this commit boolean flags are simply appended to the
end of the config if they are set to `true`, and discarded otherwise.

For example, the config

    {
      theme = "TwoDark";
      show-all = true;
      lessopen = false;
    }

would produce a config file that looks like

    --theme='TwoDark'
    --show-all

Fixes #4657
2024-04-10 21:26:42 +02:00
..
bat.nix bat: support boolean flags in config 2024-04-10 21:26:42 +02:00
default.nix bat: allow setting themes/syntaxes without IFD 2024-04-10 21:26:24 +02:00
deprecated-options.nix bat: allow setting themes/syntaxes without IFD 2024-04-10 21:26:24 +02:00