-
Notifications
You must be signed in to change notification settings - Fork 263
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
Autommands - Implemented as a plugin #380
Comments
There are already some hooks that does the same thing. At the moment there are a very few. You can see them at Lua API for in-process extension of the REAME. |
I've had a look at the list. Can't find the events for a file : open/save/close. Copied from documentation: events hooks:
|
This would have been convenient indeed... Maybe it is not a lot to add: In the C source code, right after opening a file, make a call to a lua function using the lua C API. |
Hi, the following 3 additional events are now exposed through the Lua API:
Is this good enough for your purpose? The "plugin" interface is still rather young, suggestions for API improvements can also be posted to issue #292. Note that with the current design the event handlers are executed synchronously, meaning the editor core will block until your event handler terminates. This might change at some point with the introduction of a proper RPC interface #59. |
Autocommands are essential for my vim workflow.
Is it possible to recreate them with a plugin?
The text was updated successfully, but these errors were encountered: