In a large skillet, heat the olive oil over medium heat. Add the diced onion and sauté for about 3-4 minutes until softened. Stir in the minced garlic and cook for an additional minute until fragrant.
Add the potato gnocchi to the skillet, stirring to coat in the olive oil and onion mixture. Sauté for 2-3 minutes until they start to turn golden.
Pour in the vegetable or chicken broth and add the fresh spinach (or kale). Stir well to combine. If using, add the red pepper flakes at this point for a bit of heat.
Bring the mixture to a gentle simmer, cover, and cook for about 5-7 minutes, stirring occasionally, until the gnocchi are tender and the greens are wilted.
Stir in the grated Parmesan cheese, and season with salt, pepper, lemon zest, and a splash of fresh lemon juice. Mix until the cheese is melted and the dish is creamy. Adjust seasoning as needed.
Remove from heat and transfer to serving bowls. Garnish with additional Parmesan cheese and a sprinkle of chopped parsley or basil. Serve with extra lemon wedges on the side if desired.
Notes
You can substitute the greens based on preference.