From 4b28763d20e26f374ec0d0879af49f8c90f797a5 Mon Sep 17 00:00:00 2001 From: Louis Pilfold Date: Thu, 29 Sep 2016 20:36:20 +0100 Subject: [PATCH] Elixir with snippets --- snippets/elixir.snippets | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/snippets/elixir.snippets b/snippets/elixir.snippets index 0a3efbd..46ac7c8 100644 --- a/snippets/elixir.snippets +++ b/snippets/elixir.snippets @@ -48,6 +48,21 @@ snippet fori for ${1:item} <- ${2:items}, into: ${3} do ${0} end +snippet wi + with( + ${1:item} <- ${2:items} + ) do + ${0} + end +snippet wie + with( + ${1:item} <- ${2:items} + ) do + ${3} + else + ${4} -> + ${0} + end snippet df def ${1:name}, do: ${2} snippet def