From f1eabbaa1b4ff1836d0ee8335b31d009203f3775 Mon Sep 17 00:00:00 2001 From: "Vito G. Graffagnino" Date: Tue, 30 Aug 2022 16:06:22 +0100 Subject: fixed zathura integration with texlab using nvim-texlabconfig --- luasnip_snippets/eelixir.json | 53 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 luasnip_snippets/eelixir.json (limited to 'luasnip_snippets/eelixir.json') 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", + "" + ] + }, + "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 %>" + ] + } +} -- cgit v1.2.3