Heat the oil in a large pot over medium heat. Add the onion and cook for 4 to 5 minutes until soft.
Add the garlic, ginger, curry powder, turmeric, cumin and chilli flakes. Cook for 1 minute until fragrant.
Stir in the tomato paste, then add the rinsed lentils, coconut milk, stock and chopped tomatoes.
Bring to a gentle simmer, then reduce the heat to low, cover partly and cook for 22 to 25 minutes, stirring now and then, until the lentils are soft and the curry is thick.
Season with salt and lime juice. If the curry is too thick, stir in a splash of hot water.
Serve hot over rice, scattered with fresh coriander.