Lightning bolts don't render, no matter if they appear naturally, are summoned by a command or summoned by a trident with channeling.
Lightning Bolt invisible 20w22a
lighting don't render in latest snaphost
Lightning bolts are invisible
Lighting strikes are invisible when using the command from what I know.