X-Git-Url: https://git.rmz.io/dotfiles.git/blobdiff_plain/a3a804e9cf3e7002599b091e2399aa0500f7dd81..refs/heads/lazyvim:/vim/ultisnips/c.snippets?ds=sidebyside diff --git a/vim/ultisnips/c.snippets b/vim/ultisnips/c.snippets index 62d2509..4517467 100644 --- a/vim/ultisnips/c.snippets +++ b/vim/ultisnips/c.snippets @@ -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 @@ -28,7 +31,15 @@ if (${1:/* condition */}) { endsnippet snippet clangformat "Disable clang-format" -// clang-format: off +// clang-format off ${VISUAL}${0} -// clang-format: on +// 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