-
-
Notifications
You must be signed in to change notification settings - Fork 260
Generate DOC.md from annotations
#1353
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
Conversation
70fae77 to
28c2b00
Compare
|
Glad to see this 🤩 Is it at any kind of ready state ? |
a938782 to
a37da4e
Compare
|
Hey, thanks for taking a look :) I have one or two small things (rename some fields in |
2c8346d to
2e02514
Compare
We already had this previously, but this is in a format that `emmylua-analyzer-rust` and `lua-language-server` can both recognize.
Currently required by panvimdoc.
bew
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Re-reading parts of this PR, I missed a few files during my last set of indent changes 👀 They can be done later though.
You'll have to regen de final DOC.md (I didn't play with that) I think before merging.
Oh, which ones? I thought I've done a final set of changes, this time the I've tested that CI still works correctly on my test-repo, and it seems like everything is working! 🥳 I'll merge after you give it one last look @bew :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll merge after you give it one last look @bew :)
Be careful what you wish for, I love reviewing PRs and finding things to improve, so it can take a while 😅
Let's say this is my last big review though, it's almost ready for me!
Re-reading parts of this PR, I missed a few files during my last set of indent changes 👀 They can be done later though.
Oh, which ones? I thought
init.luaandchoiceNode.luawere the only really relevant files? But yeah, let's do that later 👍
I was looking at the other files of that PR that have type annotations changes, like _extra_types.lua, node.lua, snippet.lua, util.lua, ... But yeah the main ones are good.
I didn't read the CI stuff in details, but you're going to 'live with it' so it gotta be good :D
The vimhelp rendering is generally much much better than before (and inline code blocks seems all perfect now! No cut-off in the middle with a newline) ✨
Params description is still not great but for everything else it's a big positive!
I did a full pass on the generated vimhelp file, and noticed 2 (small) issues there that surfaced small issues with the md doc generation.
And another issue with the MD->vimhelp generation that shows we should probably move the general docs about a node into its top documentation instead of in @param ... doc for better readability.
bew
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Anything else on your radar ?
Appart from this comment about conflicting @class definition it's good to go for me! 🎉 🚀 🚢
|
Aaaalright, that's it for now :D |
|
That was some great collaboration ✨ With me doing thorough reviews of the things I care about (types, readability, coherence), and you being very patient and swiftly implementing most of my suggested changes that fit with your vision of the project, loved it! I very much love that plugin, it still has a few DX&UX quirks that I hope to fix / get fixed someday, but the fact that something as powerful & flexible as this exists for neovim is so awesome 🤩 This PR is a very good step in the right direction for having better types everywhere and nicer DX while writing snippets, and I hope you/we'll add more types & docs on the internals as well (it is a big negative for me that is preventing me to really read how it all works behind the scene, and maybe contribute 🙃) Rooting for this! 🚀 |
Totally agree, I also enjoyed this 😄
I'm very happy there are people like you who really seem to enjoy using luasnip ❤️
Jup, and high time it's fixed :D Oh, and I'd love to have one more pair of eyes on the core-parts of luasnip, so if you ever have questions on how something works, shoot, and I'll do my best to answer/better explain the various mechanisms :D |
Some preliminary progress to unifying annotations and information living currently in
DOC.md.This uses
luals-mdgento read code for rendering markdown from lua-codeblocks.This PR will implement the framework and add annotation for the functions implemented in
lua/luasnip/init.lua, and maybe one or two of the snippet-constructor functions so that there is a good idea on whether this is feasible for the entire documentation :D