Skip to content

A collection of Rust snippets for luasnip.nvim. Feel free to yank and pasta into your Neovim config. 🦀

License

Notifications You must be signed in to change notification settings

bobrust/rust_snippets_for_luasnip

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Rust snippets for luasnip.nvim

Rust snippets for LuaSnip...

I created these snips for smart (read: lazy) coding in Neovim (duh!).

Some are inspired by: https://github.com/rafamadriz/friendly-snippets/blob/main/snippets/rust.json
Not all made it to this list. Because rust-analyzer gets smarter every month
and there's no need for any duplicates (only when they are supersmart).

Snippets included:

  • Turbofish
  • Attributes
  • Attributes, Common Diagnostics
  • Clippy
  • Flow of Control
  • Custom Types
  • Formatted print
  • Testing

You are free to yank these snippets into your own Neovim config.
And if you have created some awesome snippets yourself (or upgraded some of mine),
send a pr, or keep me posted.

Cheers!
Bob Rust

MMMMMMMMMMMWNXXKKKKKKKXXXXNWMMMMMMMMMMMM  
MMMMMMMWNX0koc::;,,;;;;:::cox0XWMMMMMMMM  
MMMMMWXOdc;'....    .    ...',cdOKNMMMMM  
MMMMNOo;'..                 ....,cxKWMMM  
MMWXx:..                        ..,l0WMM  
MWKd;.                            .'l0WM  
W0l'.                              .'l0W  
Xd,.                ........        .'oK  
Xo'.          ..........''''..      ..c0  
Kl..        .......'''',,;::;.      .'lK  
0c..        .....',;;;::;::cc,.     .'oX  
Xo'.      ........,:lol;,,:cl;.    ..,xN  
W0:..    ..'',,'..,lxkdccodxkl.   ..,dXM  
WKo,......',;;,''';oxkkxddkOOd'  ..'lKWM  
MNOc'.  ..,,,'.''';oxkkxllx00d,...,cONMM  
MMNk:.. ..''.....',;;:col;cxOo,.';d0NMMM  
MMMN0d;.........';ccccc:;,:ooc:lx0NWMMMM  
MMMMMNx:.......',:lodxxoc;:::oONWMMMMMMM  
MMMNKkolc'......',:clodoc;;:dKWMMMMMMMMM  
MWKdlllllc;'.'.',,;:lllc::ckXWMMMMMMMMMM  
Kkoccclloolc;,,''...'';:ld0NMMMMMMMMMMMM  
dddxxdllodoolc:,'....';lOXWMMMMMMMMMMMMM  
dxkO00Oddxkxxxddol:::coOKXNWWMMMMMMMMMMM  
dxkOO0K0xx00OOOO0OxdddOKKKXWMMMMMMMMMMMM  
xxkOO0KK0xk0KK000K0xxdkKNXXWMMMMMMMMMMMM  
xkkO0KXK0000KKK0kdooddokNWWMMMMMMMMMMMMM  
xkOO00KKKO0XXKK0dcldxxoxKWMMMMMMMMMMMMMM  
xkO0KKK0K00KNXXXKkooddxx0WWMMMMMMMMMMMMM  
kxk0KXXXK000XNKXNNKOkxxxOXWMMMMMMMMMMMMM

About

A collection of Rust snippets for luasnip.nvim. Feel free to yank and pasta into your Neovim config. 🦀

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages