This commit is contained in:
parent
dbf5bde36b
commit
4ac31540af
7 changed files with 269 additions and 1 deletions
19
modules2/nixvim/plugins/completion/snippets/twig.lua
Normal file
19
modules2/nixvim/plugins/completion/snippets/twig.lua
Normal file
|
@ -0,0 +1,19 @@
|
|||
return {
|
||||
s("do", fmta("{% <> %}<>", { i(1), i(0) })),
|
||||
s("dump", fmta("{{ dump(<>) }}<>", { i(1), i(0) })),
|
||||
s("echo", fmta("{{ <> }}<>", { i(1), i(0) })),
|
||||
|
||||
s(
|
||||
"for",
|
||||
fmta(
|
||||
[[
|
||||
{% for <> in <> %}
|
||||
<>
|
||||
{% endfor %}<>
|
||||
]],
|
||||
{ i(1), i(2), i(3), i(0) }
|
||||
)
|
||||
),
|
||||
|
||||
s("if", fmta("{% if <> %}<>{% endif %}<>", { i(1), i(2), i(0) })),
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue