dotfiles/.config/nvim/lua/plugins/snippets/c.lua

36 lines
553 B
Lua
Raw Normal View History

2023-04-03 09:19:12 -04:00
local ok, ls = pcall(require,"luasnip")
if not ok then
2024-07-08 14:57:05 -04:00
vim.notify("Failed load luasnip\n")
return
2023-04-03 09:19:12 -04:00
end
local s = ls.s
local fmt = require("luasnip.extras.fmt").fmt
local i = ls.insert_node
local rep = require("luasnip.extras").rep
return {
}
-- ls.add_snippets("lua", {
2024-07-08 14:57:05 -04:00
-- s(
-- "reqm",
-- fmt(
-- [[
-- local ok, {} = pcall(require,"{}")
-- if not ok then
-- vim.notify("Failed load {}\n")
-- end
-- ]], {
-- i(1, "mod"),
-- i(2),
-- rep(2),
-- }
-- )
-- )
2023-04-03 09:19:12 -04:00
-- })