summaryrefslogtreecommitdiffstats
path: root/.config/nvim/my_snippets/c.snippets
diff options
context:
space:
mode:
authorYigit Sever2022-01-06 21:10:41 +0300
committerYigit Sever2022-01-06 21:10:41 +0300
commit77c95fbb15af968d260f829f8e0c0c221fb56d56 (patch)
tree79e18e08dcf10e6480320fe4d39279cd2a72338e /.config/nvim/my_snippets/c.snippets
parent729f26862bc2ccc5f5fbc3cfc85537670f197fec (diff)
downloaddotfiles-77c95fbb15af968d260f829f8e0c0c221fb56d56.tar.gz
dotfiles-77c95fbb15af968d260f829f8e0c0c221fb56d56.tar.bz2
dotfiles-77c95fbb15af968d260f829f8e0c0c221fb56d56.zip
nvim: new snippets
Diffstat (limited to '.config/nvim/my_snippets/c.snippets')
-rw-r--r--.config/nvim/my_snippets/c.snippets12
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:
2priority 100
3
4snippet if "if only" b
5if (${1:true}) {
6 ${0:{VISUAL}}
7}
8endsnippet
9
10snippet trace "printf trace baby" b
11printf("TRACE: ${1} (`!v b:vista_nearest_method_or_function`:`!v line(".")`)\n"${2});$0
12endsnippet