summaryrefslogtreecommitdiff
path: root/luasnip_snippets/c.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/c.json
parent823302458ec6c53455a3f34674415c43ce6a3187 (diff)
fixed zathura integration with texlab using nvim-texlabconfig
Diffstat (limited to 'luasnip_snippets/c.json')
-rw-r--r--luasnip_snippets/c.json27
1 files changed, 27 insertions, 0 deletions
diff --git a/luasnip_snippets/c.json b/luasnip_snippets/c.json
new file mode 100644
index 0000000..611d918
--- /dev/null
+++ b/luasnip_snippets/c.json
@@ -0,0 +1,27 @@
+{
+ "def": {
+ "prefix": "def",
+ "description": "#define ...",
+ "body": "#define $1",
+ "luasnip": {
+ "priority": -50
+ }
+ },
+ "mark": {
+ "prefix": "mark",
+ "description": "#pragma mark (mark)",
+ "body": [
+ "#if 0",
+ "${1:#pragma mark -",
+ "}#pragma mark $2",
+ "#endif",
+ "",
+ "$0"
+ ]
+ },
+ "fund": {
+ "prefix": "fund",
+ "description": "function declaration",
+ "body": "${1:void} ${2:function_name}($3);"
+ }
+}