The lightning flashes only for a moment. It is very difficult to capture the lightning at the exact moment it flashes because it is already out of sight if you take a picture after you see it with your human eyes. This is why I recommend long exposure. If you open the shutter for a long time before the lightning flashes, you can capture the lightning with a high probability.
The above settings are not absolute. Adjust the settings according to the shooting conditions.
Since you will be shooting for a long time, please pay attention to the following to ensure your own safety.
After that, if you have luck and energy, you will be able to take beautiful pictures.