Nvim: remove java snippets, add javascript snippets
This commit is contained in:
parent
d6f271a09a
commit
7f07fb2d2b
3 changed files with 10 additions and 16 deletions
|
@ -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();",
|
||||
"}"
|
||||
]
|
||||
}
|
||||
}
|
8
home/.config/nvim/snippets/javascript.json
Normal file
8
home/.config/nvim/snippets/javascript.json
Normal file
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
"logVariable": {
|
||||
"scope": "javascript",
|
||||
"prefix": "logvar",
|
||||
"description": "Log the variable under the cursor",
|
||||
"body": ["console.log('$1', $1);"]
|
||||
}
|
||||
}
|
|
@ -6,8 +6,8 @@
|
|||
"contributes": {
|
||||
"snippets": [
|
||||
{
|
||||
"language": "java",
|
||||
"path": "./java.json"
|
||||
"language": "javascript",
|
||||
"path": "./javascript.json"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue