diff options
Diffstat (limited to '.config/nvim/my_snippets/c.snippets')
-rw-r--r-- | .config/nvim/my_snippets/c.snippets | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/.config/nvim/my_snippets/c.snippets b/.config/nvim/my_snippets/c.snippets new file mode 100644 index 0000000..d4522f2 --- /dev/null +++ b/.config/nvim/my_snippets/c.snippets | |||
@@ -0,0 +1,12 @@ | |||
1 | # vim:ft=snippets: | ||
2 | priority 100 | ||
3 | |||
4 | snippet if "if only" b | ||
5 | if (${1:true}) { | ||
6 | ${0:{VISUAL}} | ||
7 | } | ||
8 | endsnippet | ||
9 | |||
10 | snippet trace "printf trace baby" b | ||
11 | printf("TRACE: ${1} (`!v b:vista_nearest_method_or_function`:`!v line(".")`)\n"${2});$0 | ||
12 | endsnippet | ||