plugin = enquirer => {
  enquirer.register(`textinput`, TextInput)
  enquirer.register(`selectinput`, SelectInput)
  enquirer.register(`multiselectinput`, MultiSelectInput)
  enquirer.register(`forminput`, FormInput)
  return enquirer
}
Enquirer plugin to add custom fields

@param enquirer {import("enquirer")}
@returns {import("enquirer")}