Trying to make a generic recursive node list #689
Unanswered
danielo515
asked this question in
Q&A
Replies: 2 comments 10 replies
-
I think tye issue is that the |
Beta Was this translation helpful? Give feedback.
9 replies
-
Ah, OK. I didn't know that clone performs a deep clone. Is that a feature
of luasnip? Or is plain Lua?
El dom., 11 dic. 2022 13:30, L3MON4D3 ***@***.***> escribió:
… Oh, I was referring to a deep copy, with a shallow copy (which afaik
list_extend performs) there might still be the same exact node multiple
times inside the snippet, which can cause all sorts of issues. local
nodes = _nodes:copy() should do it
—
Reply to this email directly, view it on GitHub
<#689 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AARKJWL36U5IYBLOJUXOM6TWMXCNRANCNFSM6AAAAAAS2ZKHMA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, inspired by the infinite recursive snippet from the wiki, I tried to make a generic version that I can use like a library in all my snippets. however, I'm failing to achieve that goal. Maybe you can take a look at my code and tell me what is wrong.
Thanks!
here is the code:
The used like this:
Beta Was this translation helpful? Give feedback.
All reactions