2. Heat up a medium heavy bottom pan and cook the onion in a light drizzle of olive oil with a pinch of salt until translucent. Stir in the sugar and cover with a lid. Cook on medium low heat until nicely caramelized, checking and stirring often taking care not to burn it. Once caramelized transfer to a bowl and reserve.