Move of Snippets into repository

This commit is contained in:
2023-07-31 17:42:59 +02:00
parent a7cf65baf4
commit a323c503b5
18 changed files with 2298 additions and 6 deletions

29
UltiSnips/rust.snippets Normal file
View File

@@ -0,0 +1,29 @@
snippet fn "function declaration" i
fn $1($2) `!p
if t[3] == "":
snip.rv = ""
else:
snip.rv = " -> "` $3 {
$4
}
$0
endsnippet
snippet struct "struct declaration"
// $1
// ${2:Description}
struct ${1:Name} {
$3
}
$0
endsnippet
snippet impl "implement struct"
// Implementation of $1
// ${2:Desciption}
impl ${1:struct} {
$3
}
$0
endsnippet