Turn a food processor on; drop garlic through feed tube and process until finely chopped.
Add 2 tablespoons ginger, chile, basil, cilantro, fish sauce, and sugar; process until finely chopped.
Add 1 tablespoon oil and 3 tablespoons water; process to a fine paste. (You should have ⅔ cup.)
Heat remaining 3 tablespoons oil in a medium saucepan over medium-high until shimmering.
Add leek and remaining 1 tablespoon ginger; cook until leek is translucent, 3 to 4 minutes.
Stir in rice and broth, along with 1 cup water. Bring to a boil, then reduce heat to medium-low and simmer, covered, until rice is very soft, 17 to 18 minutes.
Add shrimp; simmer, stirring once or twice, until opaque, 1 to 2 minutes.
Stir in peas and herb paste. Remove from heat; season with salt.
Serve immediately, with more cilantro and basil and lime wedges.
