It will not hurt to leave it plugged in whenever you can -- as the battery will not overcharge and you don't run the risk of the battery dying because you left the laptop unplugged and forgot about it.
***If my post helped, click the thumbs-up symbol to say thanks***
***Please mark Accept As Solution if my post solved your problem***
I am a volunteer and I do not work for, nor represent, HP
Be alert for scammers posting fake support phone numbers and/or email addresses on the community. If you think you have received a fake HP Support message, please report it to us by clicking on "Flag Post".