feat(nvim): add drupalclass snip

This commit is contained in:
Oliver Davies 2022-01-12 07:43:19 +00:00
parent f6c4c6ace6
commit a44b5b092f

View file

@ -7,6 +7,27 @@ local s = luasnip.snippet
local t = luasnip.text_node
return {
-- TODO: only load if within a Drupal project?
s(
"drupalclass",
fmta(
[[
<<?php
declare(strict_types=1);
namespace Drupal\<>;
<>class <> {
<>
}
]],
{ i(1), c(2, { t '', t 'final ' }), i(3), i(0) }
)
),
s(
"test",
fmta(