Onion family. Don’t plant peas next to leaks, broad beans around garlic, or peanuts near shallots. Beans need relatively dry, compost-rich dirt to flourish and onions compete for the same soil.