summaryrefslogtreecommitdiff
path: root/after/plugin
diff options
context:
space:
mode:
Diffstat (limited to 'after/plugin')
-rw-r--r--after/plugin/luasnip.lua6
1 files changed, 4 insertions, 2 deletions
diff --git a/after/plugin/luasnip.lua b/after/plugin/luasnip.lua
index 3f8c9e8..4b88ca9 100644
--- a/after/plugin/luasnip.lua
+++ b/after/plugin/luasnip.lua
@@ -47,14 +47,16 @@ ls.add_snippets("c", {
parse_snippet("main", "int main(void) {\n\t$0\n\treturn 0;\n}"),
parse_snippet(
"uints",
- [[typedef uint8_t u8;
+ [[#include <stdint.h>
+typedef uint8_t u8;
typedef uint16_t u16;
typedef uint32_t u32;
typedef uint64_t u64;
typedef int8_t s8;
typedef int16_t s16;
typedef int32_t s32;
-typedef int64_t s64;]]
+typedef int64_t s64;
+]]
),
})
ls.add_snippets("typescript", { parse_snippet("cl", "console.log($0);") })