mirror of
https://github.com/cap153/nvim.git
synced 2025-12-27 03:34:57 +08:00
添加一些python的snippets
This commit is contained in:
parent
9db1b78216
commit
3c19610c4d
6 changed files with 71 additions and 28 deletions
18
snippets/python.json
Normal file
18
snippets/python.json
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
|
||||
{
|
||||
"pri": {
|
||||
"prefix": "pri",
|
||||
"body": [
|
||||
"print(${0})"
|
||||
],
|
||||
"description": "print()"
|
||||
},
|
||||
"main": {
|
||||
"prefix": "main",
|
||||
"body": [
|
||||
"if __name__ == '__main__':",
|
||||
"\t${0}"
|
||||
],
|
||||
"description": "if main"
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue