add(nvim): linked snippets

This commit is contained in:
Léana 江 2023-03-19 16:25:36 +01:00
parent 24cf0bcbe5
commit da08b92ed7
8 changed files with 105 additions and 1 deletions

View file

@ -0,0 +1,21 @@
{
"Create main function": {
"prefix": "main",
"body": [
"${0}",
"fn main() {",
"\t",
"}"
]
},
"Implement std::fmt::Display trait": {
"prefix": "implfmt",
"body": [
"impl fmt::Display for ${1:Struct} {",
"\tfn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {",
"\t\twrite!(f, \"${2:format}\", ${3:fields})",
"\t}",
"}"
]
}
}