Skip to content
This repository was archived by the owner on Aug 29, 2025. It is now read-only.
Discussion options

You must be logged in to vote

The problem with sorting on save is that we don't know how the users handle BufWrite events, do they use format on save? If so is it asynchronous or not? And in the case where both are async we need a callback API on one side, the default format function from neovim doesn't provide a callback argument so I think it's resonable to a callback function on our side or add a sync version (I personally prefer async), but currently there's no way to do that if both are async.

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
2 replies
@Gnarus-G
Comment options

@luckasRanarison
Comment options

Answer selected by Gnarus-G
Comment options

You must be logged in to vote
1 reply
@luckasRanarison
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants