dotfiles/.config/nvim/lua/snippets/global.json

49 lines
2.0 KiB
JSON
Raw Normal View History

2024-04-23 04:34:15 +02:00
{
2024-06-25 13:52:46 +02:00
"shebang": {
"prefix": "shebang",
"body": [
"#!/usr/bin/env ${1:sh}",
"#",
"# ${2:Description of the script.}$0"
],
"description": [
"Shebang to specify what shell is going to run the script by default. It includes a description of the script. \n\nIt must be defined in the first line of the script.\n\nBy using #!/usr/bin/env we are making the shebang portable, meaning it is going to work correctly even if the interpreter is not located under /usr/bin"
]
},
2024-04-23 04:34:15 +02:00
"Print Name and Date": {
"prefix": "signature",
2024-06-25 13:52:46 +02:00
"body": [
"${0:Author}",
"${CURRENT_YEAR}-${CURRENT_MONTH}-${CURRENT_DATE}"
],
2024-04-23 04:34:15 +02:00
"description": "Signature"
},
"MIT": {
"prefix": "mitl",
"description": "MIT License",
"body": [
"The MIT License (MIT)",
"",
"Copyright (c) ${CURRENT_YEAR} ${0:Author}",
"",
"Permission is hereby granted, free of charge, to any person obtaining a copy",
"of this software and associated documentation files (the \"Software\"), to deal",
"in the Software without restriction, including without limitation the rights",
"to use, copy, modify, merge, publish, distribute, sublicense, and/or sell",
"copies of the Software, and to permit persons to whom the Software is",
"furnished to do so, subject to the following conditions:",
"",
"The above copyright notice and this permission notice shall be included in all",
"copies or substantial portions of the Software.",
"",
"THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR",
"IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,",
"FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE",
"AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER",
"LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,",
"OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE",
"SOFTWARE."
]
}
}