init.lua/after/luasnippets/all.lua(view raw)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
---@diagnostic disable: undefined-global
-- selene: allow(undefined_variable)
return {
s({ trig = "td", name = "TODO" }, {
d(1, function()
local function with_cmt(cmt)
return string.format(vim.bo.commentstring, " " .. cmt)
end
return s("", {
c(1, {
t(with_cmt "TODO: "),
t(with_cmt "FIXME: "),
t(with_cmt "BUG: "),
}),
})
end),
i(0),
}),
}
|