Impeaching an attorney

My husbands ex's attorney did something laughably dumb so his attorney is considering trying to impeach her attorney. What does that mean? All of the information I can find only talks about impeaching a witness. Does it just mean he gets removed from the case? We almost want his ex to keep this guy because he pissing off the judge lol.