diff options
author | Squibid <me@zacharyscheiman.com> | 2023-04-30 18:41:13 -0400 |
---|---|---|
committer | Squibid <me@zacharyscheiman.com> | 2023-04-30 18:41:13 -0400 |
commit | 01a09f243ce07d367c539d69d4a7f4541ab1dcd7 (patch) | |
tree | ec2af23e59a38d4f9ac476e69abc07c8110b52a1 /lua/core/snippets/c.lua | |
parent | 7c5d3eff786bef884022cc813448bb085ba4eccd (diff) | |
download | nvim-01a09f243ce07d367c539d69d4a7f4541ab1dcd7.tar.gz nvim-01a09f243ce07d367c539d69d4a7f4541ab1dcd7.tar.bz2 nvim-01a09f243ce07d367c539d69d4a7f4541ab1dcd7.zip |
new config old version is now on v1 branch
Diffstat (limited to 'lua/core/snippets/c.lua')
-rw-r--r-- | lua/core/snippets/c.lua | 29 |
1 files changed, 0 insertions, 29 deletions
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);', - '}', - }) - }) -}) |