Skip to content

Commit

Permalink
add snippet
Browse files Browse the repository at this point in the history
  • Loading branch information
harrydowning committed Sep 14, 2024
1 parent 84407f4 commit 274e4e9
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
8 changes: 7 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,13 @@
"description": "Use the key to define the language identifier with regex. Use the value to specify the language TextMate `scopeName`. By default the language identifier will be used as the language name. To change this, an object can be specified with the properties `name` and `scopeName` (required)."
}
}
}
},
"snippets": [
{
"language": "yaml",
"path": "./snippets/snippets.json"
}
]
},
"devDependencies": {
"@eslint/js": "^9.9.0",
Expand Down
7 changes: 7 additions & 0 deletions snippets/snippets.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"yaml-embedded-languages": {
"prefix": "yaml-embedded-languages",
"body": ["# yaml-embedded-languages: $1"],
"description": "Language command"
}
}

0 comments on commit 274e4e9

Please sign in to comment.