A collection of snippets for LuaSnips.
Example (with lazy.nvim):
{
"L3MON4D3/LuaSnip",
dependencies = { "mathjiajia/nvim-math-snippets" },
config = function()
require("luasnip").setup({
update_events = "TextChanged,TextChangedI",
enable_autosnippets = true,
})
require("luasnip.loaders.from_lua").lazy_load({})
-- other configuration
end,
}
Inspired by