use this snippet:
local number=0
s({ trig = "[", wordTrig = false, snippetType = "autosnippet" }, {
t("["),
i(1),
f(function(_, _)
number = number + 1
print(number)
return "]"
end, { 1 }),
}),
so when I type "[2345\t" it will print "1,2,3,4,5", as what I expect.
But when I type "[aaaa[bbbbb\tcccccc\t", it will print one number per "a", and two number per "b", and no number per "c". I think when I typing "c" I am still in the outer snippet so it should cause update of outer snippet, but it doesn't.