From c5833a9cdce0d4687bc348c8a95403d950070cae Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Fri, 3 Jan 2025 18:00:00 +0000 Subject: [PATCH] Add a snippet to create a test with an attribute Instead of an annotation. --- nvim/lua/opdavies/snippets/ft/php.lua | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/nvim/lua/opdavies/snippets/ft/php.lua b/nvim/lua/opdavies/snippets/ft/php.lua index 77ecd67a..5d43d7d1 100644 --- a/nvim/lua/opdavies/snippets/ft/php.lua +++ b/nvim/lua/opdavies/snippets/ft/php.lua @@ -110,6 +110,16 @@ local M = { ]], { i(1), i(2), i(0) } ), + + testat = fmta( + [[ + [#Test] + public function <>(): void { + <> + }<> + ]], + { i(1), i(2), i(0) } + ), } return M