-
Notifications
You must be signed in to change notification settings - Fork 114
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
Please include instructions on how to use keep-sorted #222
Comments
Do you mean to add support for it? I don't see that we have that as a supported formatter. |
@dbarnett I guess so? I figured it was more a case of configuring things to "just do it"? |
One issue here is that vim-codefmt is largely based on the assumption that a particular filetype has a single formatter that we can invoke to format (on save, or on While you can register a keep-sorted formatter yourself (it's not well-documented, but it is supported: you can get the codefmt registry from your own code via (Perhaps you could use something like I think adding good support for something as general as keep-sorted probably requires solving #44 first, so that you configure a chain of formatters for a filetype to run (say) |
I'd like to have https://github.com/google/keep-sorted get invoked whenever I save a file, rather adopt https://pre-commit.com/
Could you include some instructions on how to do so?
The text was updated successfully, but these errors were encountered: