summaryrefslogtreecommitdiff
path: root/luasnip_snippets/eelixir.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/eelixir.json
parent823302458ec6c53455a3f34674415c43ce6a3187 (diff)
fixed zathura integration with texlab using nvim-texlabconfig
Diffstat (limited to 'luasnip_snippets/eelixir.json')
-rw-r--r--luasnip_snippets/eelixir.json53
1 files changed, 53 insertions, 0 deletions
diff --git a/luasnip_snippets/eelixir.json b/luasnip_snippets/eelixir.json
new file mode 100644
index 0000000..8ca13ed
--- /dev/null
+++ b/luasnip_snippets/eelixir.json
@@ -0,0 +1,53 @@
+{
+ "%": {
+ "prefix": "%",
+ "description": "<% %>",
+ "body": "<% $0 %>",
+ "luasnip": {
+ "priority": -50
+ }
+ },
+ "=": {
+ "prefix": "=",
+ "description": "<%= %>",
+ "body": "<%= $0 %>"
+ },
+ "end": {
+ "prefix": "end",
+ "description": "<% end %>",
+ "body": "<% end %>"
+ },
+ "for": {
+ "prefix": "for",
+ "body": [
+ "<%= for ${1:item} <- ${2:$1s} ${3:@conn} do %>",
+ "\t$0",
+ "<% end %>"
+ ]
+ },
+ "ft": {
+ "prefix": "ft",
+ "description": "form_tag",
+ "body": [
+ "<%= form_tag(${1:\"${2:/users}\"}, method: ${3::post}) %>",
+ "\t$0",
+ "</form>"
+ ]
+ },
+ "lin": {
+ "prefix": "lin",
+ "description": "link",
+ "body": "<%= link ${1:\"${2:Submit}\"}, to: ${3:\"${4:/users}\"}, method: ${5::delete} %>"
+ },
+ "ff": {
+ "prefix": "ff",
+ "description": "form_for",
+ "body": [
+ "<%= form_for @changeset, ${1:\"${2:/users}\"}, fn f -> %>",
+ "\t\t$0",
+ "",
+ "\t<%= submit \"Submit\" %>",
+ "<% end %>"
+ ]
+ }
+}