There's a lot of parallels between the stories of king Limhi and king Josiah.
they both had wicked fathers who ruled as kings
they both recognized the wickedness of their fathers (Mosiah 21:17, 2 Kings 22:10-11,13)
they both made covenants with God to serve him (Mosiah 21:29-31, 2 Kings 23:2-3)
they both put down the wicked rulers, or priests, at the time (Mosiah 19:18,20-21, 2 Kings 23:5)
they both had peace for a time in their nation
and afterwards were subjected by another one and forced to pay huge taxes