Changed snippets

This commit is contained in:
BogosBinted 2024-11-15 13:41:01 +01:00
parent 8d1ef972bc
commit 950ddeb557
12 changed files with 2739 additions and 23 deletions

View file

@ -0,0 +1,15 @@
-- 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.") }
),
}