Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lua/luasnip_snippets/snippets/all.lua
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ return {
-- value of an insert_node.
s("novel", {
t("It was a dark and stormy night on "),
d(1, utils.date_input, {}, { user_args = "%A, %B %d of %Y" }),
d(1, utils.date_input, {}, { user_args = { "%A, %B %d of %Y" } }),
t(" and the clocks were striking thirteen."),
}),

Expand Down
4 changes: 2 additions & 2 deletions lua/luasnip_snippets/snippets/python.lua
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ return {
t({ 'def init(self,' }),
i(3),
t({ '):', '\t\t' }),
d(4, pycdoc, { 3 }, { user_args = 2 }),
d(4, pycdoc, { 3 }, { user_args = { 2 } }),
f(function(args)
if not args[1][1] or args[1][1] == '' then
return { '' }
Expand All @@ -91,7 +91,7 @@ return {
t('('),
i(2),
t({ '):', '\t' }),
d(3, pyfdoc, { 2 }, { user_args = 1 }),
d(3, pyfdoc, { 2 }, { user_args = { 1 } }),
}),
}
}
Expand Down
4 changes: 2 additions & 2 deletions lua/luasnip_snippets/snippets/test.lua
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ return {
-- )
s("test dynamic", {
t("AAA "),
d(1, utils.date_input, {}, { user_args = "%A, %B %d of %Y" }),
d(1, utils.date_input, {}, { user_args = { "%A, %B %d of %Y" } }),
t(" BBB "),
i(2, "second"),
t(". "),
Expand Down Expand Up @@ -147,7 +147,7 @@ return {
s("trig", {
i(1, "1"),
-- pos, function, argnodes, user_arg1
d(2, lines, {1}, { user_args = "Sample Text" })
d(2, lines, {1}, { user_args = { "Sample Text" } })
}),


Expand Down