From 765182a79b7bebeea9296ef71381adcebc77f089 Mon Sep 17 00:00:00 2001 From: ManjaroOne666 Date: Tue, 30 Jul 2019 12:35:37 +0100 Subject: [PATCH] add snippets --- UltiSnips/css.snippets | 8 ++++++++ UltiSnips/javascript.snippets | 5 ++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/UltiSnips/css.snippets b/UltiSnips/css.snippets index 327d17f..b08516c 100644 --- a/UltiSnips/css.snippets +++ b/UltiSnips/css.snippets @@ -123,6 +123,14 @@ snippet o "opacity: ... ;" opacity: ${1:0}; endsnippet +snippet rgbw "rgba( ... )" +rgba(${1:#fff}, ${2:0.5}) +endsnippet + +snippet rgbb "rgba( ... )" +rgba(${1:#000}, ${2:0.5}) +endsnippet + snippet before "::before { ... }" ${1:&}::before { content: '$2'; diff --git a/UltiSnips/javascript.snippets b/UltiSnips/javascript.snippets index c05de2b..8851546 100644 --- a/UltiSnips/javascript.snippets +++ b/UltiSnips/javascript.snippets @@ -37,7 +37,6 @@ for (let ${1:index} = ${2:0}; $1 $3; $1${4:++}) { endsnippet snippet st "setTimeout( ... )" -setTimeout(() => { - $1 -}, ${2:1000}) +setTimeout(() => {$0 +}, ${1:1000}); endsnippet