Skip to content

Commit

Permalink
Shorten to sp
Browse files Browse the repository at this point in the history
Also add snippets for `@opaque`, `@type` and `@typep`
  • Loading branch information
craigp authored and lpil committed Apr 18, 2017
1 parent 2c2b6db commit 10a426f
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion snippets/elixir.snippets
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,16 @@ snippet wie
${4} ->
${0}
end
snippet spec
snippet sp
@spec ${1:name}(${2:args}) :: ${3:returns}
snippet op
@opaque ${1:type_name} :: ${2:type}
snippet ty
@type ${1:type_name} :: ${2:type}
snippet typ
@typep ${1:type_name} :: ${2:type}
snippet cb
@callback ${1:name}(${2:args}) :: ${3:returns}
snippet df
def ${1:name}, do: ${2}
snippet def
Expand Down

0 comments on commit 10a426f

Please sign in to comment.