diff --git a/symlinks/config/nvim/plugin/snippets.lua b/symlinks/config/nvim/plugin/snippets.lua index f678b91..6eafc00 100644 --- a/symlinks/config/nvim/plugin/snippets.lua +++ b/symlinks/config/nvim/plugin/snippets.lua @@ -157,3 +157,11 @@ luasnip.add_snippets("java", { require("luasnip.loaders.from_vscode").lazy_load() require("luasnip").filetype_extend("java", { "javadoc", "java-tests" }) + +luasnip.add_snippets("rust", { + s("tests", { + t({ "#[cfg(test)]", "mod tests {", " use super:*;", " " }), + i(0), + t({ "", "}" }), + }), +})