-
Anyone know what I'm doing incorrectly in the dynamic node for this autosnippet? Minimal reproducible config local function regex_capture(group)
return function(_, snip)
return snip.captures[group]
end
end
local packer_use = s(
{
trig = "use%shttps://github%.com/([%w-%._]+)/([%w-%._]+)$",
regTrig = true,
hidden = true,
},
fmt('use({}"{}/{}"{})', {
c(1, { t(""), t({ "{", " " }) }),
t("1"),
t("2"),
d(3, function(args)
return sn(nil, t("3"))
end, { 1 }),
})
)
The above minimal config produces the following error:
|
Beta Was this translation helpful? Give feedback.
Answered by
L3MON4D3
Apr 29, 2022
Replies: 1 comment 1 reply
-
It's just that there's no 2nd jump-position: |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
axieax
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It's just that there's no 2nd jump-position:
d(3, ...)
->d(2, ...)
seems to work