Finely chop the small onion and mince the garlic.
Heat the olive oil in a large deep skillet or sauté pan over medium heat.
Add the chopped onion and cook, stirring occasionally, for 2–3 minutes until softened.
Add the minced garlic and cook for about 1 minute until fragrant.
Pour in the broth and bring to a boil.
Zest the lemon, reserving a small amount for garnish, then add the juice and most of the zest to the pan.
Pour in the heavy cream and bring the sauce to a very gentle boil.
Add the uncooked gnocchi to the sauce, cover the pan, and cook over medium-low heat for 4 minutes.
Remove the lid, stir the gnocchi, then add the raw shrimp and stir to combine.
Cook uncovered on low heat, stirring regularly, for about 3 minutes or until the shrimp are cooked through and opaque.
Season with salt and pepper to taste, then serve garnished with chopped fresh parsley and the reserved lemon zest.