kickstart.nvim/lua/custom/plugins/Luasnip/all.lua

16 lines
433 B
Lua

-- Place this in ${HOME}/.config/nvim/LuaSnip/all.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.") }
),
}