Skip to content

Commit

Permalink
add pmeth for 🦀 snippet
Browse files Browse the repository at this point in the history
  • Loading branch information
derekahn committed Nov 12, 2022
1 parent 52cc5f9 commit 9992648
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions config/lvim/snippets/rust.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,15 @@
],
"description": "method"
},
"public method": {
"prefix": "pmeth",
"body": [
"pub fn ${1:name}(${2:&self}) -> ${3:RetType} {",
" ${4:unimplemented!();}",
"}"
],
"description": "method"
},
"String::from": {
"prefix": "st",
"body": ["String::from(\"${1}\")${2}"],
Expand Down

0 comments on commit 9992648

Please sign in to comment.