diff options
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/alpha/snippets/config.lua | 14 | ||||
| -rw-r--r-- | lua/alpha/snippets/php.lua | 6 |
2 files changed, 10 insertions, 10 deletions
diff --git a/lua/alpha/snippets/config.lua b/lua/alpha/snippets/config.lua index ff438c2..e28c570 100644 --- a/lua/alpha/snippets/config.lua +++ b/lua/alpha/snippets/config.lua @@ -1,11 +1,11 @@ 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 +-- 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 -- local types = require("luasnip.util.types") -- Every unspecified option will be set to the default. diff --git a/lua/alpha/snippets/php.lua b/lua/alpha/snippets/php.lua index 0831aa3..cc84950 100644 --- a/lua/alpha/snippets/php.lua +++ b/lua/alpha/snippets/php.lua @@ -5,8 +5,8 @@ local t = ls.text_node local i = ls.insert_node local c = ls.choice_node local d = ls.dynamic_node -local f = ls.function_node -local l = require("luasnip.extras").lambda +-- local f = ls.function_node +-- local l = require("luasnip.extras").lambda -- visibility allows to reuse it pasing the first option to show for the -- snippet @@ -70,7 +70,7 @@ ls.snippets = { -- __construct s("_c", { - d(1, visibility, {}), + d(1, visibility, {}, "public"), t('function __construct('), c(2, { sn(nil, { |