Just a guess, but normally lightning is caused by potential difference between the air and ground, so you roughly speaking have two potential surfaces/regions. For this to happen laterally, perhaps it would be enough to have three masses of air separated by two pressure fronts, with the interactions at the air masses' boundaries acting something like charge buildup across parallel plate capacitors. And then, dielectric breakdown happens.