If Neelix is dealt lethal damage at the same time that you gain life, he will die before his second ability would resolve.

Artwork
Loading artwork…
Neelix, Moral Support
Star Trek · #209 · EN
Nonfoil—Foil—
Card rules
When Neelix enters, create a Food token. (It's an artifact with "2,
, Sacrifice this token: You gain 3 life.")
Whenever you gain life, put a +1/+1 counter on Neelix.
1/1
"I'm just a cook who sometimes imagines himself to be a diplomat."
Uncommon · Illustrated by JB Casacop
Format legality
Brawl Legal
Commander Legal
Competitive Brawl Legal
Duel Legal
Future Legal
Gladiator Legal
Historic Legal
Legacy Legal
Modern Legal
Oathbreaker Legal
Pioneer Legal
Standard Legal
Standard Brawl Legal
Timeless Legal
Tlr Legal
Vintage Legal
Alchemy Not Legal
Old School Not Legal
Pauper Not Legal
Pauper Commander Not Legal
Penny Not Legal
PreDH Not Legal
Premodern Not Legal
Rulings
Published rulings from the downloaded Scryfall catalog. Source card record · Rules and interactions
Each creature with lifelink dealing combat damage causes a separate life-gaining event. For example, if two creatures you control with lifelink deal combat damage at the same time, Neelix's second ability will trigger twice. However, if a single creature you control with lifelink deals combat damage to multiple creatures, players, planeswalkers, and/or battles at the same time (perhaps because it has trample or was blocked by more than one creature), the ability will trigger only once.
If you gain an amount of life "for each" of something or "equal to the number" of something, that life is gained as one event and Neelix's second ability triggers only once.
In a Two-Headed Giant game, life gained by your teammate won't cause Neelix's second ability to trigger, even though it caused your team's life total to increase.
Neelix's second ability triggers just once for each life-gaining event, whether it's 1 life from Jake Sisko, War Correspondent or 2 life from Elim Garak, Simple Tailor.