nvim/cmp: remove vscode style snippets

This commit is contained in:
Primrose 2025-07-09 11:27:40 +02:00
parent 14bfbece87
commit 30305d8f59
Signed by: primrose
GPG key ID: 4E887A4CA9714ADA
7 changed files with 0 additions and 134 deletions

View file

@ -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"
]
}
}

View file

@ -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"
}
]
}
}

View file

@ -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]",
""
]
}
}

View file

@ -1,9 +0,0 @@
{
"Create main function": {
"prefix": "main",
"body": [
"${0}",
"fn main() {}"
]
}
}

View file

@ -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",
"})"
]
}
}

View file

@ -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"
}
}

View file

@ -1,16 +0,0 @@
{
"Tag": {
"prefix": "<",
"body": [
"<${1:element}${2:property}>",
"${0}",
"</${1:element}>"
]
},
"Auto-closing tag": {
"prefix": "</",
"body": [
"<${1:element}/>"
]
}
}