Self-healing hydrogel for tissue repair in the central nervous system