{ config, lib, ... }:

with lib;

{
  package.ivy.use-package = {
    config = mkDefault ''
      (ivy-mode 1)
    '';
    diminish = mkDefault "ivy-mode";
    custom = {
      ivy-initial-inputs-alist = mkDefault false;
      ivy-use-selectable-prompt = mkDefault true;
    };
    bind."ivy-minibuffer-map"."RET" = mkDefault "ivy-alt-done";
  };
}
