Companion plants for squash include corn and all kinds of beans and peas; strong-smelling plants like marigold, catnip, oregano, or mint; and trap-crops like nasturtiums that ward off bugs. Potatoes and leafy greens should not be grown with squashes.