aboutsummaryrefslogtreecommitdiffstats
path: root/lua/alpha/snippets.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/alpha/snippets.lua')
-rw-r--r--lua/alpha/snippets.lua18
1 files changed, 18 insertions, 0 deletions
diff --git a/lua/alpha/snippets.lua b/lua/alpha/snippets.lua
new file mode 100644
index 0000000..378fa20
--- /dev/null
+++ b/lua/alpha/snippets.lua
@@ -0,0 +1,18 @@
+local ls = require"luasnip"
+local s = ls.snippet
+local sn = ls.snippet_node
+local t = ls.text_node
+local i = ls.insert_node
+local f = ls.function_node
+local c = ls.choice_node
+local d = ls.dynamic_node
+
+ls.snippets = {
+ php = {
+ s("getter", {
+ t("/**"),
+ t(" *"),
+ t(" *"),
+ })
+ }
+}