]> git.rmz.io Git - dotfiles.git/blobdiff - vim/ultisnips/c.snippets
nvim: add FPP copyright snippet
[dotfiles.git] / vim / ultisnips / c.snippets
index c54b875fedfb4913034ba8f05a00bdf3772a3301..4517467587f874becfc39358c2a4df7a139c7d5e 100644 (file)
@@ -1,3 +1,6 @@
+# disable horrible one word snippets
+clearsnippets pri pro pub fr mu t pr
+
 snippet once "Include header once only guard"
 #ifndef ${1:`!p snip.rv = re.sub(r'[^A-Za-z0-9]+','_', snip.fn).upper()`}
 #define $1
@@ -32,3 +35,11 @@ snippet clangformat "Disable clang-format"
 ${VISUAL}${0}
 // clang-format on
 endsnippet
+
+snippet nolintnl "Disable clang-tiny diagnostic on next line" b
+//NOLINTNEXTLINE(${0})
+endsnippet
+
+snippet nolint "Disable clang-tiny diagnostic"
+NOLINT(${0})
+endsnippet