Coolant temp sensor bad or unplugged. Afm bad or unplugged. tps also has to do with idle, as does the 02 sensor.
I just went through all of this on mine and it turned out to be vac leaks, but it wouldnt hold idle at all.
Have you checked it for codes yet?