Macs actually stop charging the battery around 100% (around 80 with optimized charging) and are provided power solely from the wall adapter. So it’s perfectly fine to leave it plugged in. I’ve tested this too by looking at the cycle count over a month and it stayed the same.