It became the capital of the Colony and Dominion of Virginia in 1780