dotfiles/home/.config/lvim/snippets/python.json
2022-11-20 03:14:18 +01:00

22 lines
440 B
JSON

{
"future.__annotations__": {
"prefix": "futann",
"body": "from __future__ import annotations\n",
"description": "Add __future__.annoations import."
},
"script": {
"prefix": "script",
"body": [
"#!/usr/bin/env python3",
"",
"def main() -> None:",
"\t${1:...}",
"",
"",
"if __name__ == \"__main__\":",
"\tmain()"
],
"description": "print Hello, World!"
}
}