---@diagnostic disable: undefined-global return { -- mini symbols s('check', t([[✔]])), s('cross', t([[✖]])), s('...', t([[…]])), s( 'memail', c(1, { t([[robert@gnzler.de]]), t([[robert@gnzler.io]]), }) ), s('mename', t([[Robert Günzler]])), s('date', exec([[date --rfc-email]])), s( 'today', f(function() return os.date('%Y-%m-%d') end, {}) ), s( 'now', f(function() return os.date('%Y-%m-%dT%H:%M:%SZ') end, {}) ), s( 'license', d(1, function() local choices = {} for _, path in ipairs( vim.fn.glob(vim.fn.stdpath('config') .. '/snippets/license_*.txt', false, true, false) ) do choices[#choices + 1] = f(function(_, _, uargs) return vim.fn.readfile(uargs) end, {}, { user_args = { path } }) end return sn(nil, { c(1, choices, { name = 'FOSS licenses' }) }) end, nil) ), s( 'todo', d(1, function() return sn(nil, fmt(string.format(vim.bo.commentstring, ' TODO: {} '), { i(1) })) end, nil) ), }