Finely chop the onion and garlic.
Heat olive oil in a pan and sauté the chopped onion and garlic.
Add the rice and stir-fry until it becomes translucent.
Pour in the white wine and let the alcohol evaporate.
Gradually add the vegetable broth while stirring, and cook until the rice is almost done.
Mix in the heavy cream and basil pesto.
Season with salt and pepper.
Add Parmigiano cheese to finish.
Serve in a bowl and garnish with basil leaves.