summaryrefslogtreecommitdiff
path: root/luasnip_snippets/html_minimal.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/html_minimal.json
parent823302458ec6c53455a3f34674415c43ce6a3187 (diff)
fixed zathura integration with texlab using nvim-texlabconfig
Diffstat (limited to 'luasnip_snippets/html_minimal.json')
-rw-r--r--luasnip_snippets/html_minimal.json36
1 files changed, 36 insertions, 0 deletions
diff --git a/luasnip_snippets/html_minimal.json b/luasnip_snippets/html_minimal.json
new file mode 100644
index 0000000..aacf551
--- /dev/null
+++ b/luasnip_snippets/html_minimal.json
@@ -0,0 +1,36 @@
+{
+ "id": {
+ "prefix": "id",
+ "body": "id=\"$1\"$2",
+ "luasnip": {
+ "priority": -49
+ }
+ },
+ "idn": {
+ "prefix": "idn",
+ "body": "id=\"$1\" name=\"${2:$1}\""
+ },
+ "label_and_input": {
+ "prefix": "label_and_input",
+ "body": [
+ "<label for=\"${2:$1}\">$1</label>",
+ "<input type=\"${3:text}\" name=\"${4:$2}\"${5: id=\"${6:$2}\"} value=\"$7\" />$8"
+ ]
+ },
+ "input": {
+ "prefix": "input",
+ "body": "<input type=\"${1:text}\" value=\"$2\" name=\"$3\"${4: id=\"${5:$3}\"}/>$7"
+ },
+ "submit": {
+ "prefix": "submit",
+ "body": "<input type=\"submit\" value=\"$2\" $3/>$7"
+ },
+ "textarea": {
+ "prefix": "textarea",
+ "body": "<textarea name=\"$2\"${3: id=\"$4\"}>$5</textarea>"
+ },
+ "img": {
+ "prefix": "img",
+ "body": "<img src=\"$1\"${2: alt=\"$3\"}/>"
+ }
+}