From: Samir Benmendil Date: Sun, 17 Dec 2023 17:32:02 +0000 (+0000) Subject: vim: add snippet for spaceship operator X-Git-Url: https://git.rmz.io/dotfiles.git/commitdiff_plain/1695f21d018a113eb7be048f802d038c8a0dbda4?ds=sidebyside vim: add snippet for spaceship operator --- diff --git a/vim/ultisnips/cpp.snippets b/vim/ultisnips/cpp.snippets index 1d44b8c..a677d5f 100644 --- a/vim/ultisnips/cpp.snippets +++ b/vim/ultisnips/cpp.snippets @@ -35,6 +35,10 @@ $1 &operator=($1 const &) = 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)" namespace${1/.+/ /m}${1} { ${VISUAL}${0}