X-Git-Url: https://git.rmz.io/dotfiles.git/blobdiff_plain/6467b6c93e141c9f7c437407b7c7e1a771620763..refs/heads/lazyvim:/vim/ultisnips/c.snippets?ds=inline diff --git a/vim/ultisnips/c.snippets b/vim/ultisnips/c.snippets index c54b875..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 @@ -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