X-Git-Url: https://git.rmz.io/dotfiles.git/blobdiff_plain/d6af24826c9ef92b5538ddffca9c3d46eaf193ea..refs/heads/lazyvim:/vim/ultisnips/c.snippets diff --git a/vim/ultisnips/c.snippets b/vim/ultisnips/c.snippets index 864d0ca..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 @@ -26,3 +29,17 @@ if (${1:/* condition */}) { ${3:/* else */} } endsnippet + +snippet clangformat "Disable clang-format" +// clang-format off +${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