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

Can you add autocommand event? #55

Open
mosheavni opened this issue Sep 10, 2022 · 3 comments
Open

Can you add autocommand event? #55

mosheavni opened this issue Sep 10, 2022 · 3 comments

Comments

@mosheavni
Copy link

I want to popup a notification that the file was formatted using client_name, can you either fire a custom autocommand event? or provide an option for a callback using the setup function for after the file is formatted?
Thanks

@lukas-reineke
Copy link
Owner

Would be nice to add something like this 👍, but I am super busy currently. Probably won't happen for a while, sorry.

@mosheavni
Copy link
Author

Would be nice to add something like this 👍, but I am super busy currently. Probably won't happen for a while, sorry.

Sure thing, will you accept a PR?

@lukas-reineke
Copy link
Owner

will you accept a PR?

Yes, but this is a little more complex than just doing an event when the file is formatted.
There could be more than one client. Each client can have result/no result/error. If there is a result, it might not be applied for different reasons. And each client has a context. Some/All that information should probably be in the event as well somehow.

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

No branches or pull requests

2 participants