From 77c95fbb15af968d260f829f8e0c0c221fb56d56 Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Thu, 6 Jan 2022 21:10:41 +0300 Subject: nvim: new snippets --- .config/nvim/my_snippets/c.snippets | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 .config/nvim/my_snippets/c.snippets (limited to '.config/nvim/my_snippets/c.snippets') 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 @@ +# 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 -- cgit v1.2.3-70-g09d2