Jesus Parra agreed to plead no contest to attempted murder, assault, and a weapons violation. Other charges were dropped, including accusations of child abuse.
The case stems from a bloody stabbing that took place April 2013 in Grand Island.
Hall County Attorney Mark Young said Parra drove from Kansas with the intent to kill his estranged wife.
Judge Teresa Luther told Parra she did not have to follow the plea deal.
Through an interpreter, Parra then said, "I want to have a trial right away I think."
After a break in the courtroom to talk to his lawyer, he agreed to take the deal.
Parra was offered a plea once previously, and turned that one down.
This is the same man who previously said his wife was trying to poison him. Earlier this year, he was previously found unfit to stand trial and sent to a mental health treatment facility.
Young, the prosecutor, declined to comment to NTV, given Parra's erratic history.
Parra previously said his wife was trying to torture him and had been found incompetent to stand trial.
He underwent treatment and now could get 50 years in prison. He's been ordered to undergo a pre-sentence investigation, and will learn his punishment in July.