Pulse garlic, nuts, herbs, oil, and Parmesan in a food processor until finely chopped. Season with salt and pepper.