Skip to content
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

Add esformatter_autosave option #3

Merged
merged 1 commit into from Mar 19, 2019

Conversation

dannytranlx
Copy link

I just switched to ESFormatter and I usually like to have my formatter run automagically on save, so I don't have to think about it. The esformatter_autosave flag to enable it to call :Esformatter on save.

@millermedeiros
Copy link
Owner

sorry for overlooking this, will merge this soon!

PS: need to update https://github.com/millermedeiros/vim-esformatter/blob/master/doc/esformatter.txt

@dannytranlx
Copy link
Author

I'll need to double check again, it's been giving me trouble by auto formatting on not Javascript files. Don't merge yet 😂

@dannytranlx
Copy link
Author

dannytranlx commented Sep 26, 2018

2 years later...

I was tired of seeing this PR in my PR list. Here's the fix, simply needed <buffer> to be replaced by *.js,*.jsx,*.mjs 😅

Hopefully, it's helpful! I actually got used to running :Esformatter manually and now the team has transition to vim-prettier.

@millermedeiros
Copy link
Owner

thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants