You can leave the charger connected or not. It makes no difference as for the health of the battery.
About Batteries in Modern Apple Laptops
Hi everyone. Ive read that it is safe to plug in your macbook all the time and use the battery every 1 week and let and charge it again once it reaches 50-60%
Now Im wondering if it is safe to remove the charger once Ive decided to shut down my computer. And just plug the charger back again before opening it? Will it let my charge cycles go up?
Charge cycle will not go up.
Plug it in whenever the battery needs to be charged.
At home when Mac is in use, keep it plugged in.
When updating software, make sure that Mac is plugged in.
All about Batteries