diff options
| author | Vito G. Graffagnino <vito@graffagnino.xyz> | 2022-08-30 16:06:22 +0100 |
|---|---|---|
| committer | Vito G. Graffagnino <vito@graffagnino.xyz> | 2022-08-30 16:06:22 +0100 |
| commit | f1eabbaa1b4ff1836d0ee8335b31d009203f3775 (patch) | |
| tree | bbe77eacaef8ab8a5999e517c3006973c9e3e44c /luasnip_snippets/javascript-node.json | |
| parent | 823302458ec6c53455a3f34674415c43ce6a3187 (diff) | |
fixed zathura integration with texlab using nvim-texlabconfig
Diffstat (limited to 'luasnip_snippets/javascript-node.json')
| -rw-r--r-- | luasnip_snippets/javascript-node.json | 74 |
1 files changed, 74 insertions, 0 deletions
diff --git a/luasnip_snippets/javascript-node.json b/luasnip_snippets/javascript-node.json new file mode 100644 index 0000000..975c697 --- /dev/null +++ b/luasnip_snippets/javascript-node.json @@ -0,0 +1,74 @@ +{ + "#!": { + "prefix": "#!", + "description": "#!/usr/bin/env node", + "body": "#!/usr/bin/env node", + "luasnip": { + "priority": -50 + } + }, + "ex": { + "prefix": "ex", + "description": "module.exports", + "body": "module.exports = $1;" + }, + "hcs": { + "prefix": "hcs", + "description": "http.createServer", + "body": "http.createServer($1).listen($2);" + }, + "ncs": { + "prefix": "ncs", + "description": "net.createServer", + "body": [ + "net.createServer(function(${1:socket}){", + "\t$1.on('data', function(${3:data}){", + "\t\t$4", + "\t\\});", + "\t$1.on('end', function(){", + "\t\t$5", + "\t\\});", + "\\}).listen(${6:8124});" + ] + }, + "pipe": { + "prefix": "pipe", + "description": "pipe", + "body": "pipe(${1:stream})$2" + }, + "eget": { + "prefix": "eget", + "description": "express GET", + "body": "${1:app}.get('$2', $3);" + }, + "epost": { + "prefix": "epost", + "description": "express POST", + "body": "${1:app}.post('$2', $3);" + }, + "eput": { + "prefix": "eput", + "description": "express PUT", + "body": "${1:app}.put('$2', $3);" + }, + "edelete": { + "prefix": "edelete", + "description": "express DELETE", + "body": "${1:app}.delete('$2', $3);" + }, + "stdout": { + "prefix": "stdout", + "description": "stdout", + "body": "process.stdout" + }, + "stdin": { + "prefix": "stdin", + "description": "stdin", + "body": "process.stdin" + }, + "stderr": { + "prefix": "stderr", + "description": "stderr", + "body": "process.stderr" + } +} |
