summaryrefslogtreecommitdiffstats
path: root/.config/nvim/my_snippets/c.snippets
blob: d4522f2c2d1cfc2ec16a5b8b864e6bd28dca5989 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
# vim:ft=snippets:
priority 100

snippet if "if only" b
if (${1:true}) {
	${0:{VISUAL}}
}
endsnippet

snippet trace "printf trace baby" b
printf("TRACE: ${1} (`!v b:vista_nearest_method_or_function`:`!v line(".")`)\n"${2});$0
endsnippet