# Carapace — multi-shell completion engine with Fish, Nushell, and Bash integration.
{
  config,
  lib,
  ...
}:
with lib; let
  cfg = config.base.cliTools.carapace;
in {
  # Enabled by default — base modules are always-on.
  options.base.cliTools.carapace.enable = (mkEnableOption "enable carapace completion engine") // {default = true;};

  config = mkIf cfg.enable {
    programs.carapace = {
      enable = true;
      enableFishIntegration = true;
      enableNushellIntegration = true;
      enableBashIntegration = true;
    };
  };
}
