From 5f5edc76d5322df730070f42088405f59995dc23 Mon Sep 17 00:00:00 2001 From: Yoon Date: Fri, 26 Oct 2018 13:58:45 +0900 Subject: [PATCH] add single line function snippet --- snippets/snippets.json | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/snippets/snippets.json b/snippets/snippets.json index b36c2a5..59cdf75 100644 --- a/snippets/snippets.json +++ b/snippets/snippets.json @@ -17,6 +17,12 @@ "description": "def", "scope": "source.elixir" }, + "def1": { + "prefix": "def1", + "body": "def $1, do: $2", + "description": "one line def", + "scope": "source.elixir" + }, "test": { "prefix": "test", "body": "test $1 do\n\t$0\nend", @@ -95,6 +101,12 @@ "description": "defp", "scope": "source.elixir" }, + "defp1": { + "prefix": "defp1", + "body": "defp $1, do: $2", + "description": "one line defp", + "scope": "source.elixir" + }, "defpro": { "prefix": "defprotocol", "body": "defprotocol $1 do\n $0\nend", @@ -155,4 +167,4 @@ "description": "require", "scope": "source.elixir" } -} +} \ No newline at end of file