This was heavily influenced by https://github.com/tjdevries
Now, before a file is saved, we call the vim api format() function which formats the content of the file.