With a well-stocked pantry, you'll not only be prepared to cook a wide range of dishes, you'll save time and money in the long run, because by getting accustomed to your personal set of supplies, you'll develop your own style, and you will not have to go out to the store and buy every single ingredient in a dish when it's time for dinner.
In the Kitchn Cure, I'm starting to try to impart some techniques for cooking more by instinct than by recipe. This is a great time of year to try this style of free-hand cooking because the availability of inspiring ingredients, produce in particular, starts to be more bountiful. And, ironically, the best place to start is not at the farmers' market, but at the grocery store. Sure, those fiddlehead ferns you see at your friendly farmer's stand are sure pretty, but what are you going to do with them?
You need to stock your pantry.