When grocery shopping, I always create a list that will accumulate into the dishes I will be making that week.
I like to write down the different combinations I can make with the groceries I will be buying that week.
I.E.: Blackbean Tacos, Black Bean Fiesta Bowl, Huevos Ranchero w/ Black Bean. 3 different combinations with one ingredient.
It helps you eat more freely while still planning out what you want to make that week.