Does your speedometer work? No speedo signal will cause the same symptom.
Could also be a faulty/dirty IAC sensor, Idle Air Control mounted on the side of the throttle body closest to the valve cover. Consider removed the throttle body, remove the sensors, and give the TB a good bench cleaning with carb cleaner and a toothbrush.