summaryrefslogtreecommitdiff
path: root/luasnip_snippets/erlang.json
diff options
context:
space:
mode:
authorVito G. Graffagnino <vito@graffagnino.xyz>2022-08-30 16:06:22 +0100
committerVito G. Graffagnino <vito@graffagnino.xyz>2022-08-30 16:06:22 +0100
commitf1eabbaa1b4ff1836d0ee8335b31d009203f3775 (patch)
treebbe77eacaef8ab8a5999e517c3006973c9e3e44c /luasnip_snippets/erlang.json
parent823302458ec6c53455a3f34674415c43ce6a3187 (diff)
fixed zathura integration with texlab using nvim-texlabconfig
Diffstat (limited to 'luasnip_snippets/erlang.json')
-rw-r--r--luasnip_snippets/erlang.json23
1 files changed, 23 insertions, 0 deletions
diff --git a/luasnip_snippets/erlang.json b/luasnip_snippets/erlang.json
new file mode 100644
index 0000000..e7e336c
--- /dev/null
+++ b/luasnip_snippets/erlang.json
@@ -0,0 +1,23 @@
+{
+ "pat": {
+ "prefix": "pat",
+ "description": "Case:Receive:Try Clause",
+ "body": [
+ "${1:pattern}${2: when ${3:guard}} ->",
+ "\t${4:body}"
+ ],
+ "luasnip": {
+ "priority": -50
+ }
+ },
+ "||": {
+ "prefix": "||",
+ "description": "List Comprehension",
+ "body": "[${1:X} || ${2:X} <- ${3:List}${4:, gen}]"
+ },
+ "gen": {
+ "prefix": "gen",
+ "description": "Generator Expression",
+ "body": "${1:X} <- ${2:List}${3:, gen}"
+ }
+}