From 2b4f981189a432ec7f228111d1cacbefc4972537 Mon Sep 17 00:00:00 2001 From: Buddy Sandidge Date: Fri, 14 Feb 2014 16:34:55 -0800 Subject: [PATCH] Update JavaScript snippets setTimeout to pass jshint style check option --- vim/UltiSnips/javascript.snippets | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/vim/UltiSnips/javascript.snippets b/vim/UltiSnips/javascript.snippets index 03aa03a..76a759c 100644 --- a/vim/UltiSnips/javascript.snippets +++ b/vim/UltiSnips/javascript.snippets @@ -1,4 +1,4 @@ -snippet f "function" +snippet f "function" ! function ${1:function_name}(${2:argument}) { ${VISUAL}$0 } @@ -16,3 +16,8 @@ endsnippet snippet strict "use strict" 'use strict'; endsnippet +snippet timeout "setTimeout" ! +setTimeout(function () { + ${1://code} +}, 0); +endsnippet