-
Notifications
You must be signed in to change notification settings - Fork 239
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
Clean up annotations on APIs that can be made public and document the ability to create custom popups #1546
Conversation
Not going to lie, this is actually way simpler than I had in mind - in a good way. I had this whole idea about replacing the builder pattern with a completely declarative approach, which would be a lot of work and, as this shows... entirely not needed. Thanks for that :) Question for you: would making the Another aspect of this that would be good to show would be how to integrate a custom popup with the status buffer:
I think those are somewhat unsolved by this (which is fine) - but again, might not be a big deal. What do you think? |
7460ffd
to
0bb3c00
Compare
Oh interesting! Yeah, I figured that the existing mechanisms were fine as they are.
It seems that would be fine -- I haven't really used them but from a glance they seem easy enough to use. The documentation is a bit sparse for some of them, but I think that could be fleshed out in the future.
I'm less familiar with these -- would you mind tweaking what I have pushed currently to include what you're envisioning for that? Happy to include it! |
Heh, yeah, I was learning lua for the most part by working on this in the beginning. Had no idea how to do type annotations (and they weren't nearly as ubiquitous two years ago, iirc). I try to go back over them to add better types/docs or whatever from time to time.
I think I can make the latter automatic, and add better docs/types for the former. |
This is a subset of the `PopupData` defined in `popup/init.lua` and is throwing LSP warnings.
0bb3c00
to
b917302
Compare
Really appreciate your initiative here - thank you! |
As noted in #1542, it could be very useful to use Neogit as a platform for building popups and actions for custom subcommands. Clean up some of the documentation around the builder APIs and mention in the docs the possibility of creating custom commands.