Adds git modules
Closes NerdTree when buffer closes