mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 14:49:14 +00:00
nvim/cmp: remove vscode style snippets
This commit is contained in:
parent
14bfbece87
commit
30305d8f59
7 changed files with 0 additions and 134 deletions
|
|
@ -1,27 +0,0 @@
|
||||||
{
|
|
||||||
"Create main function": {
|
|
||||||
"prefix": "main",
|
|
||||||
"body": [
|
|
||||||
"int main()",
|
|
||||||
"{",
|
|
||||||
"\t$0",
|
|
||||||
"\treturn 0;",
|
|
||||||
"}"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"Debug expression": {
|
|
||||||
"prefix": "dbg",
|
|
||||||
"body": [
|
|
||||||
"printf(\"${1:expression}: ${2:format}\\n\", ${1:expression});"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"Check pointer": {
|
|
||||||
"prefix": "cpt",
|
|
||||||
"body": [
|
|
||||||
"if (${1:ptr} == NULL) {",
|
|
||||||
"\treturn $2;",
|
|
||||||
"}",
|
|
||||||
"$0"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,31 +0,0 @@
|
||||||
{
|
|
||||||
"name": "leana-snippets",
|
|
||||||
"contributes": {
|
|
||||||
"snippets": [
|
|
||||||
{
|
|
||||||
"language": "c",
|
|
||||||
"path": "./c.json"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"language": "python",
|
|
||||||
"path": "./python.json"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"language": "rust",
|
|
||||||
"path": "./rust.json"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"language": "scala",
|
|
||||||
"path": "./scala.json"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"language": "tex",
|
|
||||||
"path": "./tex.json"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"language": "xml",
|
|
||||||
"path": "./xml.json"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,14 +0,0 @@
|
||||||
{
|
|
||||||
"Open, read and save file to variable": {
|
|
||||||
"prefix": "open",
|
|
||||||
"body": [
|
|
||||||
"${1:var} = []",
|
|
||||||
"with open(\"${2:file.txt}\") as f:",
|
|
||||||
"\t${1:var} = [",
|
|
||||||
"\t\tline.strip()",
|
|
||||||
"\t\tfor line in f.readlines() if line != '\\n'",
|
|
||||||
"\t]",
|
|
||||||
""
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,9 +0,0 @@
|
||||||
{
|
|
||||||
"Create main function": {
|
|
||||||
"prefix": "main",
|
|
||||||
"body": [
|
|
||||||
"${0}",
|
|
||||||
"fn main() {}"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,12 +0,0 @@
|
||||||
{
|
|
||||||
"Debug a flow chain of consecutive methods": {
|
|
||||||
"prefix": ".dbg",
|
|
||||||
"body": [
|
|
||||||
".map(x => {",
|
|
||||||
"// DEBUG: this in an identity function that debugs to println",
|
|
||||||
"\tprintln(x)",
|
|
||||||
"\tx",
|
|
||||||
"})"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,25 +0,0 @@
|
||||||
{
|
|
||||||
"Verbatim mode": {
|
|
||||||
"prefix": "```",
|
|
||||||
"body": [
|
|
||||||
"\\begin{BVerbatim}[commandchars=\\\\\\\\\\{\\\\}]",
|
|
||||||
"$0",
|
|
||||||
"\\end{BVerbatim}"
|
|
||||||
],
|
|
||||||
"description": "Verbatim mode mapped to markdown's codeblock"
|
|
||||||
},
|
|
||||||
"Opening French quotes": {
|
|
||||||
"prefix": "<<",
|
|
||||||
"body": [
|
|
||||||
"«~"
|
|
||||||
],
|
|
||||||
"description": "Opening French quote with non breaking space"
|
|
||||||
},
|
|
||||||
"Closing French quote": {
|
|
||||||
"prefix": ">>",
|
|
||||||
"body": [
|
|
||||||
"~»"
|
|
||||||
],
|
|
||||||
"description": "Closing French quote with non breaking space"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,16 +0,0 @@
|
||||||
{
|
|
||||||
"Tag": {
|
|
||||||
"prefix": "<",
|
|
||||||
"body": [
|
|
||||||
"<${1:element}${2:property}>",
|
|
||||||
"${0}",
|
|
||||||
"</${1:element}>"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"Auto-closing tag": {
|
|
||||||
"prefix": "</",
|
|
||||||
"body": [
|
|
||||||
"<${1:element}/>"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue