You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
577 B
Lua
31 lines
577 B
Lua
---@diagnostic disable: undefined-global
|
|
--
|
|
-- TODO!: how to cleanly exec system processes (fn.execute vs os.execute vs jobstart)
|
|
-- local function gen_uuid(args, parent)
|
|
-- t = os.execute("uuidgen")
|
|
-- end
|
|
|
|
return {
|
|
-- s("sniptest", {
|
|
-- t"hello snippet"
|
|
-- })
|
|
--
|
|
|
|
-- choice nodes
|
|
s("choice", fmt("{} my {}",{
|
|
c(2, {t("hello"), t("hi")}),
|
|
c(1, {t"bob", t"alice"})
|
|
})
|
|
),
|
|
|
|
-- function node
|
|
s("pwd", f(function()
|
|
return vim.fn.getcwd()
|
|
end)),
|
|
|
|
}, { --autosnippets
|
|
-- s("uuid#", f(gen_uuid))
|
|
}
|
|
|
|
--
|