snippets: add a basic snippet

This commit is contained in:
Tyler Wilding 2022-03-15 01:48:03 -04:00
parent 8817b52403
commit e1f735f52d
No known key found for this signature in database
GPG key ID: A89403EB356ED106
3 changed files with 13 additions and 2 deletions

View file

@ -49,8 +49,8 @@
], ],
"snippets": [ "snippets": [
{ {
"language": "javascript", "language": "opengoal",
"path": "./snippets/goal-snippets.json" "path": "./snippets/opengoal.json"
} }
] ]
} }

11
snippets/opengoal.json Normal file
View file

@ -0,0 +1,11 @@
{
"defun": {
"prefix": "defun",
"body": [
"(defun ${1:name} (${2:vars})",
"\t\"${3:doc-string}\"",
"\t$0)"
],
"description": "Create a new function"
}
}

0
test/sample.gs Normal file
View file