Overwork LaTeX snippets

This commit is contained in:
2023-08-01 18:15:27 +02:00
parent 092db34f94
commit bc4a426a1f
3 changed files with 45 additions and 180 deletions

View File

@@ -1,10 +1,12 @@
snippet fn "function declaration" i
// $3 $1
// ${4:Description}
fn $1($2) `!p
if t[3] == "":
snip.rv = ""
else:
snip.rv = " -> "` $3 {
$4
$5
}
$0
endsnippet
@@ -27,3 +29,9 @@ impl ${1:struct} {
$0
endsnippet
snippet for "for-loop"
for ${1:i} in ${2:$3..$4} {
$5
}$0
endsnippet