Open MariaSolOs opened 1 year ago
Related #378 (but incomplete)
Oh yeah, for sure!
As far as I understand, this would basically be whatever is in DOC.md
, but as emmylua-annotation, so lua-language-server can parse it?
If so, I'd say there is a choice to make:
DOC.md
to the source-files (which could be done relatively quickly, but having to keep both in sync manually seems suboptimal, and mistakes could happen), orDOC.md
(initial setup seems much harder, but this seems cleaner at least)I'd honestly be fine with either option since I don't really anticipate many major additions to luasnip, so the additional long-time-work induced by the first option may not outweigh one-time work and complexity introduced by the second one (though the second one may be fun to figure out)
Unfortunately, I really don't use annotations at all though, so my motivation for doing either is pretty low :sweat_smile:
@L3MON4D3 that's fair. I think that if no major API changes are predicted, then option 1 is fine.
Any reason why #378 hasn't been merged? Despite being incomplete, it's still an improvement.
Only that it's marked as draft, and adding annotations for a small number of api-functions only seemed a bit weird. But you're right, better that than nothing. I'll look into getting it merged
Sounds good. I think that splitting the work into smaller PRs will be less overwhelming than documenting the entire API at once (I think no one has the motivation for that hehe).
I’m also happy to help with this btw!
Sounds good. I think that splitting the work into smaller PRs will be less overwhelming than documenting the entire API at once
Ah, yeah, probably also true :D
I’m also happy to help with this btw!
Yay, hoped for just that :P Best wait until I'm done with #941 (shouldn't be long now), lots of changes to the files where api is defined in there
Hi, I am also interested in this. Since the other PR is merged. Is there anything else blocking this?
When writing custom snippets, it would be really helpful to use type annotations for
s
,t
, and other global snippet constructors for better editing support :)