-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
lua: autocmds take 2 #14661
lua: autocmds take 2 #14661
Conversation
Haha, this is my next big core feature I will work on 😁 it is a fun one to tackle. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
It is not a breaking change. |
6e476af
to
81045a5
Compare
Also mentioned the 2nd take on autocommands PR (neovim/neovim#14661) as well as the newer plugin for running Fennel (https://github.com/rktjmp/hotpot.nvim).
This comment has been minimized.
This comment has been minimized.
I am working on it when I have time :) In general, it is considered bad form to do these kinds of posts in a PR that has commits somewhat recently. |
This comment has been minimized.
This comment has been minimized.
0f28a28
to
d6c16d6
Compare
@tjdevries What you think about getting this merged for 0.7? I remember you said you "hated" some things in the present implementation, but does those affect observable behavior? I'd say as long as the behavior is reasonable (including error handling and such), we can get this merged early in the 0.7 cycle, and re-iterate on the implementation, including possible small changes of behavior if needed. |
Just noting this down here for the sake of completeness: Does this PR cover |
@bfredl let me spend some time this week and next on it, and then ask for your review. If you like it and feel OK w/ the hack that I have in there, I feel confident it could work pretty well. |
1b959d8
to
861142a
Compare
@tjdevries I rebased to resolve some surface level conflicts. |
5049b03
to
f5e3c77
Compare
ce505cc
to
e95e862
Compare
e95e862
to
991e472
Compare
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
IMO, |
Would it make sense to merge |
No, it would not make sense -- these have to be different for technical reasons (same as for the Also, drive-by bikeshedding after a PR is merged is a) poor form and b) not going to lead to very much due to the lack of visibility. |
Please don't comment on this PR with user specific issues or questions. Either raise an issue or reach out on matrix. Thanks |
Note, for anyone who was using this immediately after merge, there was a problem with our merge into master, which was resolved in this PR: Note, that there are changes to the API functions here, so you will need to change how you were calling the API |
Restarting my attempt of #12378
Plan is:
nvim_*
api functions to access and test autocmdsdo_cmdline
and/or create a new function that can be used by autocmds.LineGetter
to something that could return a union of items (command
,LuaRef
,vim funcref
). And then we execute it thereOnce we do that, it's very easy to extend the
nvim_*
api functions to accept lua refs (as a new key) and use the refactoring that we did.I'll be moving code over as I implement this from the original PR.
Status: