-
-
Notifications
You must be signed in to change notification settings - Fork 246
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
DOC mistakes #510
Comments
Some other mistakes in the documentation are found too. I can open a PR to fix them. |
Ohh, yes you're right, easy to get confused with wording there :P |
The sentence in here is hard to understand:
Why we need that argument? It would be better to add an example for it. LuaSnip/tests/integration/dynamic_spec.lua Lines 301 to 322 in c599c56
The expansion is:
which I still don't understand, because
|
That's a bit involved 😅: You can see the difference by calling I agree that some motivation for this option should be given, a link to this comment might do it.
Ouh, yeah, |
It's much clear for me after some local testing: No
|
Mhmm, I can see how that would be better in this case, but in general, I'm not convinced that matching the number of lines in an env-var really provides additional value.
Oh, mhmmm, that's unexpected, no idea where that linebreak is coming from o.O |
Ahh nvm, of course it's coming from |
(Btw, funny idea feeding the generated docstrings back to luasnip, hadn't occured to me as of yet :D) |
So, what's the canonical way to use |
You can see one usage here, so it's mostly used to show what a snippet looks like in completion-engines. |
nonempty(n, "non empty!", "empty!")
makes sense in factLuaSnip/lua/luasnip/extras/init.lua
Lines 131 to 147 in c599c56
The text was updated successfully, but these errors were encountered: