From 01a09f243ce07d367c539d69d4a7f4541ab1dcd7 Mon Sep 17 00:00:00 2001
From: Squibid <me@zacharyscheiman.com>
Date: Sun, 30 Apr 2023 18:41:13 -0400
Subject: new config old version is now on v1 branch

---
 lua/core/snippets/c.lua | 29 -----------------------------
 1 file changed, 29 deletions(-)
 delete mode 100644 lua/core/snippets/c.lua

(limited to 'lua/core/snippets/c.lua')

diff --git a/lua/core/snippets/c.lua b/lua/core/snippets/c.lua
deleted file mode 100644
index c45f556..0000000
--- a/lua/core/snippets/c.lua
+++ /dev/null
@@ -1,29 +0,0 @@
-ls.add_snippets('c', {
-  s('trip', {
-    -- cond ? then : else statment
-    i(1, 'cond'), t(' ? '), i(2, 'then'), t(' : '), i(3, 'else')
-  }),
-  s('stdlibs', {
-    -- cond ? then : else statment
-    t('#include <stdio.h>'),
-    t({'', '#include <stdlib.h>'})
-  }),
-  s('die', {
-    t({
-    'void die(const char *fmt, ...) {', '',
-      'va_list ap;',
-      '',
-      'va_start(ap, fmt);',
-      'vfprintf(stderr, fmt, ap);',
-      'va_end(ap);',
-      '',
-      [[if (fmt[0] && fmt[strlen(fmt)-1] == ':') {]],
-      [[  fputc(' ', stderr);]],
-      '  perror(NULL);',
-      '} else',
-      [[  fputc('\n', stderr);]],
-      '  exit(1);',
-      '}',
-    })
-  })
-})
-- 
cgit v1.2.1