-
-
Notifications
You must be signed in to change notification settings - Fork 139
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Format without saving #116
Comments
Hi @nikolvs, Thanks for raising this question. Prettier async always saves the file, but if you run the synchronous version it should'nt save it.
One common problem is when you setup your let g:prettier#exec_cmd_async = 1 The above will cause |
Please try the above and let me know if that solve your problem (removing the flag that forces async formatting from your .vimrc) |
I also wonder how could we solve this problem differently, Im not sure if adding yet another configuration option is the right solution since that would make things even harder to configure |
Hey @mitermayer, that solved my problem! Thanks!! |
Is there any chance async would work without saving the buffer? |
@AngeloMateus feel free to submit this as a separate issue and I can look into it, should not be a problem. |
Is there a way to format a file without automatically saving it? I read the docs, but didn't find anything about it there. If not, is it possible to implement this feature as an option? Thanks!
The text was updated successfully, but these errors were encountered: