From e573b3020c032400eed60b649a2cbf55266e6bb0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Thu, 30 Jun 2016 16:03:25 +0200 Subject: Add current configurations from old repository --- vim/bundle/vim-snippets/UltiSnips/eelixir.snippets | 39 ++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 vim/bundle/vim-snippets/UltiSnips/eelixir.snippets (limited to 'vim/bundle/vim-snippets/UltiSnips/eelixir.snippets') diff --git a/vim/bundle/vim-snippets/UltiSnips/eelixir.snippets b/vim/bundle/vim-snippets/UltiSnips/eelixir.snippets new file mode 100644 index 0000000..72fb7ce --- /dev/null +++ b/vim/bundle/vim-snippets/UltiSnips/eelixir.snippets @@ -0,0 +1,39 @@ +priority -50 + +extends html + +snippet % "<% %>" w +<% $0 %> +endsnippet + +snippet = "<%= %>" w +<%= $0 %> +endsnippet + +snippet end "<% end %>" w +<% end %> +endsnippet + +snippet for +<%= for ${1:item} <- ${2:$1s} ${3:@conn} do %> + $0 +<% end %> +endsnippet + +snippet ft "form_tag" w +<%= form_tag(${1:"${2:/users}"}, method: ${3::post}) %> + $0 + +endsnippet + +snippet lin "link" w +<%= link ${1:"${2:Submit}"}, to: ${3:"${4:/users}"}, method: ${5::delete} %> +endsnippet + +snippet ff "form_for" w +<%= form_for @changeset, ${1:"${2:/users}"}, fn f -> %> + $0 + + <%= submit "Submit" %> +<% end %> +endsnippet -- cgit v1.2.3