summaryrefslogtreecommitdiff
path: root/luasnip_snippets/soy.json
diff options
context:
space:
mode:
authorVito G. Graffagnino <vito@graffagnino.xyz>2022-08-30 16:06:22 +0100
committerVito G. Graffagnino <vito@graffagnino.xyz>2022-08-30 16:06:22 +0100
commitf1eabbaa1b4ff1836d0ee8335b31d009203f3775 (patch)
treebbe77eacaef8ab8a5999e517c3006973c9e3e44c /luasnip_snippets/soy.json
parent823302458ec6c53455a3f34674415c43ce6a3187 (diff)
fixed zathura integration with texlab using nvim-texlabconfig
Diffstat (limited to 'luasnip_snippets/soy.json')
-rw-r--r--luasnip_snippets/soy.json79
1 files changed, 79 insertions, 0 deletions
diff --git a/luasnip_snippets/soy.json b/luasnip_snippets/soy.json
new file mode 100644
index 0000000..2298166
--- /dev/null
+++ b/luasnip_snippets/soy.json
@@ -0,0 +1,79 @@
+{
+ "ns": {
+ "prefix": "ns",
+ "description": "Namespace",
+ "body": "{namespace ${1:name}\\}",
+ "luasnip": {
+ "priority": -50
+ }
+ },
+ "msg": {
+ "prefix": "msg",
+ "description": "Message",
+ "body": [
+ "{msg desc=\"${1:description}\"\\}",
+ "\t$0",
+ "{/msg\\}"
+ ]
+ },
+ "let": {
+ "prefix": "let",
+ "description": "let command",
+ "body": "{let \\$${1:identifier}: ${2:expression} /\\}"
+ },
+ "if": {
+ "prefix": "if",
+ "description": "if .. (if)",
+ "body": [
+ "{if ${1:expression}\\}",
+ "\t$0",
+ "{/if\\}"
+ ]
+ },
+ "ife": {
+ "prefix": "ife",
+ "description": "if .. else (ife)",
+ "body": [
+ "{if ${1:expression}\\}",
+ "\t$2",
+ "{else\\}",
+ "\t$0",
+ "{/if\\}"
+ ]
+ },
+ "eli": {
+ "prefix": "eli",
+ "description": "else if .. (eli)",
+ "body": [
+ "{elif ${1:expression}\\}",
+ "\t$0"
+ ]
+ },
+ "fore": {
+ "prefix": "fore",
+ "description": "foreach command",
+ "body": [
+ "{foreach \\$${1:var} in ${2:ref}\\}",
+ "\t$0",
+ "{/foreach\\}"
+ ]
+ },
+ "for": {
+ "prefix": "for",
+ "description": "for command",
+ "body": [
+ "{for \\$${1:var} in range(${2:rangeexpr})\\}",
+ "\t$0",
+ "{/for\\}"
+ ]
+ },
+ "call": {
+ "prefix": "call",
+ "description": "template call",
+ "body": [
+ "{call ${1:tmpl}\\}",
+ "\t$0",
+ "{/call\\}"
+ ]
+ }
+}