I gave her a full set of enchanted gear that alters Health and health regeneration. I made her essential with the console and she's only ever "Died" once when she got stuck on swinging spike wall trap. She kept getting hit, stagged, hit again and again until she "Died".. over and over and over again. I had to "push" her out using Unrelenting Force, lol.
My Lydia has 967 Health and so much health regen it's crazy, lol.
I had to set her essential because she got killed early on, I was taking on a group of Black Mages and one was a higher level and took her out with ice bolts.
This time around in my new game, I've left her in Dragonhold (DragonHelm?) wherever and am playing the game solo, because I got sick of her standing right in the middle
of doorways or triggering all the traps I happened to be standing in at the time