Skip to content

Enable format before saving #6

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

Merged
merged 2 commits into from
Jul 14, 2017

Conversation

chansuke
Copy link

Add format before saving.

@splattael
Copy link
Member

Wow nice, thank you! 💚

👍 from me

@lucerion WDYT?

plugin/rufo.vim Outdated
@@ -12,13 +16,22 @@ if !exists('g:rufo_errors_buffer_position')
let g:rufo_errors_buffer_position = 'bottom'
endif

if get(g:, "rufo_saving", 0)
autocmd BufWritePre *.rb silent! call rufo#format_file()
Copy link
Member

@lucerion lucerion Jul 13, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@chansuke could you, please, explain why it uses here? Looks like it do the same thing as RufoFormatBeforeSave

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@lucerion Thank you for the review.I forgot to delete the draft code.
Firstable I wrote it and then updated to RufoFormatBeforeSave.
I will delete this line.

@lucerion lucerion merged commit 3ea380c into ruby-formatter:master Jul 14, 2017
@lucerion
Copy link
Member

@chansuke thank you!

@splattael
Copy link
Member

@lucerion @chansuke 💜

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

Successfully merging this pull request may close these issues.

3 participants