An auto bracket close plugin