From 1695f21d018a113eb7be048f802d038c8a0dbda4 Mon Sep 17 00:00:00 2001 From: Samir Benmendil Date: Sun, 17 Dec 2023 17:32:02 +0000 Subject: [PATCH] vim: add snippet for spaceship operator --- vim/ultisnips/cpp.snippets | 4 ++++ 1 file changed, 4 insertions(+) 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} -- 2.48.1