A list of plants with their beneficial companion plants, to help deter bugs and attract beneficial insects. Plan Dill with squash and pumpkins, but Dill will attract the tomato hornworm. Mint and parsley are enemies, Keep onions away from peas, keep potatoes and tomatoes apart as they both can get early and late blight contaminating each other.