15 lines
378 B
Lua
15 lines
378 B
Lua
return {
|
|
-- A snippet that expands the trigger "hi" into the string "Hello, world!".
|
|
require("luasnip").snippet(
|
|
{ trig = "hi" },
|
|
{ t("Hello, world!") }
|
|
),
|
|
|
|
-- To return multiple snippets, use one `return` statement per snippet file
|
|
-- and return a table of Lua snippets.
|
|
require("luasnip").snippet(
|
|
{ trig = "foo" },
|
|
{ t("Another snippet.") }
|
|
)
|
|
}
|