This commit is contained in:
Chris
2025-04-24 11:59:36 +01:00
parent 62b3b156fa
commit ca3a910401
9 changed files with 108 additions and 25 deletions

1
lua/snippets/all.json Normal file
View File

@@ -0,0 +1 @@
{}

View File

@@ -0,0 +1,9 @@
{
"Log function": {
"prefix": "du",
"body": [
"console.log($0);"
],
"description": "Log variable"
}
}

26
lua/snippets/package.json Normal file
View File

@@ -0,0 +1,26 @@
{
"name": "example-snippets",
"contributes": {
"snippets": [
{
"language": [
"all"
],
"path": "./snippets/all.json"
},
{
"language": [
"php"
],
"path": "./php.json"
},
{
"language": [
"javascript",
"vue"
],
"path": "./javascript-vue.json"
}
]
}
}

17
lua/snippets/php.json Normal file
View File

@@ -0,0 +1,17 @@
{
"Create doc block": {
"prefix": "/**",
"body": [
"/**",
" * $0",
" */"
]
},
"Dump function": {
"prefix": "du",
"body": [
"dump($0);"
],
"description": "Dump variable"
}
}