Nvim: remove java snippets, add javascript snippets

This commit is contained in:
Marko Korhonen 2025-05-14 16:41:50 -05:00
parent d6f271a09a
commit 7f07fb2d2b
3 changed files with 10 additions and 16 deletions

View file

@ -1,14 +0,0 @@
{
"queryListFromModel": {
"scope": "java",
"description": "Create a method to get a List from the database (Rossum JpaBaseDAO)",
"prefix": "queryListFromModel",
"body": [
"public List<$1> $2($3) {",
" return queryFromModelObject()",
" .where((cb, root) -> $0)",
" .results();",
"}"
]
}
}

View file

@ -0,0 +1,8 @@
{
"logVariable": {
"scope": "javascript",
"prefix": "logvar",
"description": "Log the variable under the cursor",
"body": ["console.log('$1', $1);"]
}
}

View file

@ -6,8 +6,8 @@
"contributes": {
"snippets": [
{
"language": "java",
"path": "./java.json"
"language": "javascript",
"path": "./javascript.json"
}
]
}