Add rust tests snippet

main
Ensar Sarajčić 2024-12-04 19:01:39 +01:00
parent 2e6b639ee6
commit 0a7160878a
1 changed files with 8 additions and 0 deletions

View File

@ -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({ "", "}" }),
}),
})