Skip to content

Commit

Permalink
Update for all replacing lexima. Adds important to css
Browse files Browse the repository at this point in the history
  • Loading branch information
aalvarado committed Aug 16, 2022
1 parent f21a306 commit a4068ea
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 6 deletions.
20 changes: 16 additions & 4 deletions all.snippets
Original file line number Diff line number Diff line change
Expand Up @@ -6,23 +6,35 @@ snippet \#! "hashbang"
#!/usr/bin/env bash
endsnippet

snippet { "Curly braces" i
snippet !{! "Curly braces" r
{${VISUAL}$1}$0
endsnippet

snippet !{ ! "Curly braces w space" r
{ ${VISUAL}$1 }$0
endsnippet

snippet ' "single quote" iw
snippet !'! "single quote" r
'${VISUAL}$1'$0
endsnippet

snippet " "double quotes" iw
snippet !"! "double quotes" r
"${VISUAL}$1"$0
endsnippet

snippet !`! "angled quotes" rw
\`${1:${VISUAL}}\`$0
endsnippet

snippet ( "parens" i
(${VISUAL}$1)$0
endsnippet

snippet [ "square brackets" i
snippet '\[' "square brackets" r
[${VISUAL}$1]$0
endsnippet

snippet '\[ ' "square brackets w space" r
[ ${VISUAL}$1 ]$0
endsnippet

Expand Down
3 changes: 3 additions & 0 deletions css.snippets
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
snippet !i "!important"
!important
endsnippet
4 changes: 2 additions & 2 deletions html.snippets
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,6 @@ endsnippet

snippet "<((\w+).*)>" "Generic Tag" r
<`!p snip.rv = match.group(1)`>
${VISUAL}$0
</`!p snip.rv = match.group(2)`>
${VISUAL}${1}
</`!p snip.rv = match.group(2)`>$0
endsnippet
3 changes: 3 additions & 0 deletions typescript.snippets
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
snippet cl "console log"
console.log(${1:${VISUAL}})
endsnippet

0 comments on commit a4068ea

Please sign in to comment.