{ lib
, config
, pkgs
, ...
}:
with lib;
with lib.plusultra; let
  cfg = config.plusultra.cli-apps.bat;
in
{
  options.plusultra.cli-apps.bat = {
    enable = mkEnableOption "bat";
  };

  config = mkIf cfg.enable {
    programs.bat = {
      enable = true;
      config.theme = "ansi";
      extraPackages = with pkgs.bat-extras; [ batdiff batman batgrep batwatch ];
    };
  };
}
