feat(nvim): add drupalclass
snip
This commit is contained in:
parent
f6c4c6ace6
commit
a44b5b092f
1 changed files with 21 additions and 0 deletions
|
@ -7,6 +7,27 @@ local s = luasnip.snippet
|
||||||
local t = luasnip.text_node
|
local t = luasnip.text_node
|
||||||
|
|
||||||
return {
|
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(
|
s(
|
||||||
"test",
|
"test",
|
||||||
fmta(
|
fmta(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue