summaryrefslogtreecommitdiff
path: root/luasnip_snippets/ejs.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/ejs.json
parent823302458ec6c53455a3f34674415c43ce6a3187 (diff)
fixed zathura integration with texlab using nvim-texlabconfig
Diffstat (limited to 'luasnip_snippets/ejs.json')
-rw-r--r--luasnip_snippets/ejs.json20
1 files changed, 20 insertions, 0 deletions
diff --git a/luasnip_snippets/ejs.json b/luasnip_snippets/ejs.json
new file mode 100644
index 0000000..166f8a1
--- /dev/null
+++ b/luasnip_snippets/ejs.json
@@ -0,0 +1,20 @@
+{
+ "for": {
+ "prefix": "for",
+ "description": "ejs for loop",
+ "body": [
+ "<% for (let ${1:i = 0}; ${2:i<arr.length}; ${3:i++}) { %>",
+ "\t${0:body}",
+ "<% \\} %>"
+ ]
+ },
+ "forE": {
+ "prefix": "forE",
+ "description": "ejs for Each loop",
+ "body": [
+ "<% ${1:array}.forEach((${2:single var}) => { %>",
+ "\t${0:body}",
+ "<% \\}) %>"
+ ]
+ }
+}