{"id":13410887,"url":"https://github.com/rafamadriz/friendly-snippets","last_synced_at":"2025-05-13T23:06:31.210Z","repository":{"id":38045248,"uuid":"352086858","full_name":"rafamadriz/friendly-snippets","owner":"rafamadriz","description":"Set of preconfigured snippets for different languages. ","archived":false,"fork":false,"pushed_at":"2025-04-29T17:50:53.000Z","size":6908,"stargazers_count":2358,"open_issues_count":34,"forks_count":508,"subscribers_count":13,"default_branch":"main","last_synced_at":"2025-05-13T07:18:35.600Z","etag":null,"topics":["friendly-snippets","languages","programming-languages","snippets"],"latest_commit_sha":null,"homepage":"","language":"Lua","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rafamadriz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-03-27T14:00:18.000Z","updated_at":"2025-05-13T04:09:44.000Z","dependencies_parsed_at":"2023-11-27T07:26:35.706Z","dependency_job_id":"2f218195-f2c3-4da9-8f29-0e49f14cd6e6","html_url":"https://github.com/rafamadriz/friendly-snippets","commit_stats":{"total_commits":590,"total_committers":207,"mean_commits":"2.8502415458937196","dds":0.8983050847457628,"last_synced_commit":"efff286dd74c22f731cdec26a70b46e5b203c619"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rafamadriz%2Ffriendly-snippets","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rafamadriz%2Ffriendly-snippets/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rafamadriz%2Ffriendly-snippets/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rafamadriz%2Ffriendly-snippets/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rafamadriz","download_url":"https://codeload.github.com/rafamadriz/friendly-snippets/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254040859,"owners_count":22004621,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["friendly-snippets","languages","programming-languages","snippets"],"created_at":"2024-07-30T20:01:10.020Z","updated_at":"2025-05-13T23:06:26.198Z","avatar_url":"https://github.com/rafamadriz.png","language":"Lua","funding_links":[],"categories":["Snippet","Lua","Others","languages"],"sub_categories":["Markdown and LaTeX","Assembly"],"readme":"# Friendly Snippets\n\nSnippets collection for a set of different programming languages.\n\nThe only goal is to have one community driven repository for all kinds of\nsnippets in all programming languages, this way you can have it all in one\nplace.\n\n## Install\n\nUse your plugin manager of choice, e.g.\n\n### With Lazy.nvim\n\n```lua\n{ \"rafamadriz/friendly-snippets\" }\n```\n\n\u003e [!WARNING]\n\u003e If you're using LuaSnip make sure to use\n\u003e `require(\"luasnip.loaders.from_vscode\").lazy_load()`, and add\n\u003e `friendly-snippets` as a dependency for LuaSnip, otherwise snippets might not\n\u003e be detected. If you don't use `lazy_load()` you might notice a slower\n\u003e startup-time\n\u003e\n\u003e ```lua\n\u003e {\n\u003e   \"L3MON4D3/LuaSnip\",\n\u003e   dependencies = { \"rafamadriz/friendly-snippets\" },\n\u003e }\n\u003e ```\n\n### With Packer\n\n```lua\nuse \"rafamadriz/friendly-snippets\"\n```\n\n### With vim-plug\n\n```vim\nPlug \"rafamadriz/friendly-snippets\"\n```\n\n### With coc.nvim\n\n```vim\n:CocInstall https://github.com/rafamadriz/friendly-snippets@main\n```\n\n## Usage\n\nThis collection of snippets should work with any snippet engine that supports\nloading vscode snippets. Like for example:\n\n- [vim-vsnip](https://github.com/hrsh7th/vim-vsnip)\n- [LuaSnip](https://github.com/L3MON4D3/LuaSnip)\n- [coc-snippets](https://github.com/neoclide/coc-snippets)\n\n## Add snippets from a framework to a filetype.\n\n\u003e [!NOTE]\n\u003e This is handled by your snippet engine and has nothing to do with this snippets collection\n\nThere's extra snippets included in this repo but they are not added by default,\nsince it would be irrelevant for people not using those frameworks. See\n[`snippets/frameworks`](https://github.com/rafamadriz/friendly-snippets/tree/main/snippets/frameworks)\n\nFor example: if you want to add rails snippets to ruby.\n\nWith LuaSnip:\n\n```lua\nrequire'luasnip'.filetype_extend(\"ruby\", {\"rails\"})\n```\n\nWith vim-vsnip:\n\n```viml\nlet g:vsnip_filetypes.ruby = ['rails']\n```\n\n## Excluding snippets\n\n\u003e [!NOTE]\n\u003e This is handled by your snippet engine and has nothing to do with this snippets collection\n\nWith LuaSnip, see `help luasnip-loaders`\n\n```lua\n-- will exclude all javascript snippets\nrequire(\"luasnip.loaders.from_vscode\").load {\n    exclude = { \"javascript\" },\n}\n```\n\n## Showcase\n\n### HTML\n\n![HTML gif](https://user-images.githubusercontent.com/67771985/131255337-d53f3408-b60d-44a2-93ba-9a3240a7436e.gif)\n\n### JS\n\n![JS gif](https://user-images.githubusercontent.com/67771985/131255342-e393165a-e4b1-401e-9084-a782b9dd3fef.gif)\n\n## TODO\n\n- Add all included snippets to the\n  [Wiki](https://github.com/rafamadriz/friendly-snippets/wiki).\n\n## Thanks to all contributors\n\n\u003ca href=\"https://github.com/rafamadriz/friendly-snippets/graphs/contributors\"\u003e\n  \u003cimg src=\"https://contrib.rocks/image?repo=rafamadriz/friendly-snippets\" /\u003e\n\u003c/a\u003e\n\n## Credits\n\nA good portion of the snippets have been forked from the following repositories:\n\n- [vscode-standardjs-snippets](https://github.com/capaj/vscode-standardjs-snippets)\n- [python-snippets](https://github.com/cstrap/python-snippets)\n- [vs-snippets](https://github.com/kitagry/vs-snippets)\n- [Wscats/html-snippets](https://github.com/Wscats/html-snippets)\n- [Harry-Ross/vscode-c-snippets](https://github.com/Harry-Ross/vscode-c-snippets)\n- [vscode-jekyll-snippets](https://github.com/edheltzel/vscode-jekyll-snippets)\n- [vscode-fortran-support](https://github.com/krvajal/vscode-fortran-support)\n- [vscode_cobol](https://github.com/spgennard/vscode_cobol)\n- [VSCode-LaTeX-Snippets](https://github.com/JeffersonQin/VSCode-LaTeX-Snippets)\n- [vscode-react-javascript-snippets](https://github.com/dsznajder/vscode-react-javascript-snippets)\n- [honza/vim-snippets - Verilog](https://github.com/honza/vim-snippets/blob/master/snippets/verilog.snippets)\n- [vscode-relm4-snippets](https://github.com/Relm4/vscode-relm4-snippets)\n- And more...\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frafamadriz%2Ffriendly-snippets","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frafamadriz%2Ffriendly-snippets","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frafamadriz%2Ffriendly-snippets/lists"}