aboutsummaryrefslogtreecommitdiffstats
path: root/hm/soispha/conf/nvim/plgs/luasnip/lua/snippets/html
diff options
context:
space:
mode:
authorSoispha <soispha@vhack.eu>2024-02-20 17:21:42 +0100
committerSoispha <soispha@vhack.eu>2024-02-20 17:21:42 +0100
commitf2bdeaed0bcf97a880fe36cfc8a050d1643120b8 (patch)
treeba4fe9c3ddf076529701c0e776ffef2104ac23d5 /hm/soispha/conf/nvim/plgs/luasnip/lua/snippets/html
parentrefactor(treewide): Add a `.sh` extension to shell scripts (diff)
downloadnixos-config-f2bdeaed0bcf97a880fe36cfc8a050d1643120b8.zip
refactor(treewide): Reformat all files with treefmt
This includes getting all shellscripts to pass shellcheck. To accomplish this, some old scripts were removed
Diffstat (limited to 'hm/soispha/conf/nvim/plgs/luasnip/lua/snippets/html')
-rw-r--r--hm/soispha/conf/nvim/plgs/luasnip/lua/snippets/html/html.lua66
1 files changed, 33 insertions, 33 deletions
diff --git a/hm/soispha/conf/nvim/plgs/luasnip/lua/snippets/html/html.lua b/hm/soispha/conf/nvim/plgs/luasnip/lua/snippets/html/html.lua
index c467dd68..17e1e7fb 100644
--- a/hm/soispha/conf/nvim/plgs/luasnip/lua/snippets/html/html.lua
+++ b/hm/soispha/conf/nvim/plgs/luasnip/lua/snippets/html/html.lua
@@ -12,10 +12,10 @@ return {
-- HEADER
s(
{
- trig = "h([123456])";
- regTrig = true;
- wordTrig = false;
- snippetType = "autosnippet";
+ trig = "h([123456])",
+ regTrig = true,
+ wordTrig = false,
+ snippetType = "autosnippet",
},
fmt(
[[
@@ -24,50 +24,50 @@ return {
{
f(function(_, snip)
return snip.captures[1]
- end);
- d(1, get_visual);
+ end),
+ d(1, get_visual),
f(function(_, snip)
return snip.captures[1]
- end);
+ end),
}
),
- { condition = line_begin; }
- ); -- PARAGRAPH
+ { condition = line_begin }
+ ), -- PARAGRAPH
s(
- { trig = "pp"; snippetType = "autosnippet"; },
+ { trig = "pp", snippetType = "autosnippet" },
fmt(
[[
<p>{}</p>
]],
- { d(1, get_visual); }
+ { d(1, get_visual) }
),
- { condition = line_begin; }
- ); -- UNORDERED LIST
+ { condition = line_begin }
+ ), -- UNORDERED LIST
s(
- { trig = "itt"; snippetType = "autosnippet"; },
+ { trig = "itt", snippetType = "autosnippet" },
fmt(
[[
<ul>
<li>{}</li>{}
</ul>
]],
- { i(1); i(0); }
+ { i(1), i(0) }
),
- { condition = line_begin; }
- ); -- LIST ITEM
+ { condition = line_begin }
+ ), -- LIST ITEM
s(
- { trig = "ii"; snippetType = "autosnippet"; },
+ { trig = "ii", snippetType = "autosnippet" },
fmt(
[[
<li>{}</li>
]],
- { d(1, get_visual); }
+ { d(1, get_visual) }
),
- { condition = line_begin; }
- );
+ { condition = line_begin }
+ ),
-- DOCUMENT TEMPLATE
s(
- { trig = "base"; },
+ { trig = "base" },
fmt(
[[
<!doctype HTML>
@@ -81,16 +81,16 @@ return {
</body>
</html>
]],
- { i(1, "FooBar"); i(0); }
+ { i(1, "FooBar"), i(0) }
),
- { condition = line_begin; }
- ); -- ANCHOR TAG
+ { condition = line_begin }
+ ), -- ANCHOR TAG
s(
{
- trig = "([^%l])aa";
- regTrig = true;
- wordTrig = false;
- snippetType = "autosnippet";
+ trig = "([^%l])aa",
+ regTrig = true,
+ wordTrig = false,
+ snippetType = "autosnippet",
},
fmt(
[[
@@ -99,10 +99,10 @@ return {
{
f(function(_, snip)
return snip.captures[1]
- end);
- i(1);
- d(2, get_visual);
+ end),
+ i(1),
+ d(2, get_visual),
}
)
- );
+ ),
}