Skip to content

Commit

Permalink
Add rust tests snippet
Browse files Browse the repository at this point in the history
  • Loading branch information
esensar committed Dec 4, 2024
1 parent 2e6b639 commit 0a71608
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions symlinks/config/nvim/plugin/snippets.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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({ "", "}" }),
}),
})

0 comments on commit 0a71608

Please sign in to comment.