Replies: 1 comment
-
Update: I have solved the issue by moving the first section of the code in the wiki to my init.lua and the latter to the tex.lua file. |
Beta Was this translation helpful? Give feedback.
0 replies
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,
I wanted to write a snippet with the function mentioned in the docs. Please bear with me, I am not very good with lua and have probably made a basic mistake!
First, in my init.lua for nvim I have the following, which binds the change-choice and the dynamic_node_external_update keys to the same key (found in the Wiki or a discussion, I forget which):
Then I also have all the rest of the code associated with the dynamic_node_external_update as given in the wiki in a
tex.lua
file loaded into my config vialuasnip.loaders.from_lua
. Snippets within that file are loaded via areturn { }
table. For now I am trying to use the defaulttab
snippet given in the wiki:However, when I try to use this snippet in a tex file, the first part of this snippet works (number of columns), but the dynamic_node_external_update function gives me the following error:
I am not really sure how to troubleshoot this error; if I have messed something up with the scope of functions, or the like. Any guidance would be warmly welcomed.
Beta Was this translation helpful? Give feedback.
All reactions