rafamadriz/friendly-snippets
rafamadriz/friendly-snippets has 2,787 GitHub stars and 567 forks. GitHot measured 0 stars in 24 hours. Last checked 2026-11-05 22:53 UTC. Last push 2026-10-27.
Set of preconfigured snippets for different languages.
Measured star growth
- in 24h
- 0
- in 7 days
- Update delayed
- in 15 days
- Update delayed
- in 1 month
- Update delayed
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
OriginalFriendly Snippets
Snippets collection for a set of different programming languages.
The only goal is to have one community driven repository for all kinds of snippets in all programming languages, this way you can have it all in one place.
Install
Use your plugin manager of choice, e.g.
With Lazy.nvim
{ "rafamadriz/friendly-snippets" }
[!WARNING] If you're using LuaSnip make sure to use
require("luasnip.loaders.from_vscode").lazy_load(), and addfriendly-snippetsas a dependency for LuaSnip, otherwise snippets might not be detected. If you don't uselazy_load()you might notice a slower startup-time{ "L3MON4D3/LuaSnip", dependencies = { "rafamadriz/friendly-snippets" }, }
With Packer
use "rafamadriz/friendly-snippets"
With vim-plug
Plug "rafamadriz/friendly-snippets"
With coc.nvim
:CocInstall https://github.com/rafamadriz/friendly-snippets@main
Usage
This collection of snippets should work with any snippet engine that supports loading vscode snippets. Like for example:
Add snippets from a framework to a filetype.
[!NOTE] This is handled by your snippet engine and has nothing to do with this snippets collection
There's extra snippets included in this repo but they are not added by default,
since it would be irrelevant for people not using those frameworks. See
snippets/frameworks
For example: if you want to add rails snippets to ruby.
With LuaSnip:
require'luasnip'.filetype_extend("ruby", {"rails"})
With vim-vsnip:
let g:vsnip_filetypes.ruby = ['rails']
Excluding snippets
[!NOTE] This is handled by your snippet engine and has nothing to do with this snippets collection
With LuaSnip, see help luasnip-loaders
-- will exclude all javascript snippets
require("luasnip.loaders.from_vscode").load {
exclude = { "javascript" },
}
Showcase
HTML

JS

TODO
- Add all included snippets to the Wiki.
Thanks to all contributors
Credits
A good portion of the snippets have been forked from the following repositories:
Explore related projects
codecrafters-io/build-your-own-x
Master programming by recreating your favorite technologies from scratch.
560,377 starspublic-apis/public-apis
A collective list of free APIs
496,673 starsmorluto/rea
Reverse engineer anything with agents, from app behavior down to native binaries.
437,459 starsopenclaw/openclaw
The AI that really does things. Any OS. Any Platform. The lobster way. 🦞
394,056 stars