Heat oil in a large skillet over medium heat. Add onion; cook and stir until translucent, about 3 minutes. Add garlic; cook and stir until soft, about 2 minutes. Stir in broccoli rabe until coated with oil. Cook until leaves wilt, about 3 minutes. Cover and cook, about 2 minutes more.