local ls = require("luasnip") local s = ls.snippet local t = ls.text_node local i = ls.insert_node local f = ls.function_node -- Get current date in YYYY-MM-DD format local function date() return os.date("%Y-%m-%d") end return { s("env", { t({ "---", "title: ", }), i(1, "Title"), t({ "", "tags: [" }), i(2, "tag1, tag2"), t({ "]", "date: " }), f(date, {}), t({ "", "---", "" }), i(0), }), s( "ippd", t({ "Institute of Polymer Processing and Digital Transformation", }) ), s( "TN", t({ "Thomas Naderer", }) ), s( "GBW", t({ "Gerald Berger-Weber", }) ), }