Currently overwrite = false creates a new file instead.
https://github.com/domluna/JuliaFormatter.jl/blob/9c2f82fb5a5a4699390b3c4dd42d35de3d325483/src/JuliaFormatter.jl#L344
It is possible that the user has a file in by that name in that location. I think overwrite = false should instead return the contents of the file.
This will make it easier to interface with vim plugins too.
Currently
overwrite = falsecreates a new file instead.https://github.com/domluna/JuliaFormatter.jl/blob/9c2f82fb5a5a4699390b3c4dd42d35de3d325483/src/JuliaFormatter.jl#L344
It is possible that the user has a file in by that name in that location. I think
overwrite = falseshould instead return the contents of the file.This will make it easier to interface with vim plugins too.