]> git.rmz.io Git - dotfiles.git/blobdiff - vim/ultisnips/cpp.snippets
lazyvim: remove nvim-cmp config
[dotfiles.git] / vim / ultisnips / cpp.snippets
index 421396624aaf090e35c02a8f6c250e7884ad23c8..a677d5f5f5c98c7be4c0118321fc1af81ddc9e04 100644 (file)
@@ -2,7 +2,7 @@
 priority 1
 
 # disable horrible one word snippets
-clearsnippets pri pro pub fr mu t
+clearsnippets pri pro pub fr mu t pr
 
 clearsnippets set
 
@@ -30,9 +30,13 @@ snippet rule5 "Default constructors/destructors/operaters" b
 ${1:classname}() = default;
 ~$1() = default;
 $1($1 const &) = default;
-$1($1 &&) = default;
+$1($1 &&) noexcept = default;
 $1 &operator=($1 const &) = default;
-$1 &operator=($1 &&) = default;
+$1 &operator=($1 &&) noexcept = default;
+endsnippet
+
+snippet spaceship "defaulted spaceship operator <=>"
+friend auto operator<=>(${1:type} const&, $1 const&) = default;
 endsnippet
 
 snippet ns "namespace .. (namespace)"