Skip to content

Commit

Permalink
Added Anonymous Function (javascript) for UltiSnips. Supports $VISUAL.
Browse files Browse the repository at this point in the history
  • Loading branch information
shepherdsam committed Mar 10, 2016
1 parent 743be1a commit edc4eed
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions UltiSnips/javascript.snippets
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,12 @@ ${1:var }${2:function_name} = function $2(${3}) {
};
endsnippet

snippet af "Anonymous Function" i
function($1) {
${VISUAL}$0
}
endsnippet

snippet iife "Immediately-Invoked Function Expression (iife)"
(function(${1:window}) {
${VISUAL}$0
Expand Down

0 comments on commit edc4eed

Please sign in to comment.