A Lima man takes a plea deal for threatening a woman with a gun