A curated collection of VS Code-compatible snippets for Neovim, covering multiple programming languages and testing frameworks.
| Language | Frameworks |
|---|---|
| Go | Ginkgo, Gomega |
Snippets are distributed in VS Code format and load via LuaSnip.
{
"L3MON4D3/LuaSnip",
dependencies = {
"nvim-contrib/nvim-snippets",
},
config = function()
require("luasnip.loaders.from_vscode").lazy_load {
paths = { vim.fn.stdpath("data") .. "/lazy/nvim-snippets" },
}
end,
}{
"L3MON4D3/LuaSnip",
dependencies = {
"nvim-contrib/nvim-snippets",
},
config = function(plugin, opts)
-- include the default AstroNvim LuaSnip config
require("astronvim.plugins.configs.luasnip")(plugin, opts)
-- load nvim-snippets snippets
require("luasnip.loaders.from_vscode").lazy_load {
paths = { vim.fn.stdpath("data") .. "/lazy/nvim-snippets" },
}
end,
}Contributions are welcome! To add or improve snippets:
- Fork the repository
- Edit or add files under
snippets/<language>/ - Run
make validateto check JSON validity - Open a pull request
Snippets follow the VS Code snippet format.
MIT — see LICENSE.