Toast the pine nuts. In a small dry skillet over medium-low heat, toast the pine nuts, stirring frequently, until golden and fragrant, 2 to 3 minutes. Transfer immediately to a small bowl and set aside. Toast the pasta. Heat the olive oil in a wide Dutch oven or sauté pan over medium-high heat. Add the onion and cook, stirring often, until beginning to brown. Add the pasta and garlic. Stir often until lightly toasted and fragrant, about 3 minutes. Simmer the pasta.