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

Stop blowing away the BufWritePre augroup in ftplugins #272

Merged
merged 1 commit into from
Feb 1, 2021

Conversation

johanventer
Copy link

Summary

The BufWritePre autocmds are reset each time a file type plugin is run, which means if you open a file of one type, it will auto format correctly, but if you then open a file of a different type, the original file will no longer auto format.

See further explanation here: #185 (comment)

This PR removes the augroup from each of the ftplugin files and adds some missing file extensions to the augroup in plugin/prettier.vim.

Test Plan

[...]

@gadkadosh
Copy link

Didn't see this PR... I can confirm that a similar change was required for me to have vim-prettier auto format consistently and not break its own autocmds.

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