A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/rafamadriz/friendly-snippets below:

rafamadriz/friendly-snippets: Set of preconfigured snippets for different languages.

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.

Use your plugin manager of choice, e.g.

{ "rafamadriz/friendly-snippets" }

Warning

If you're using LuaSnip make sure to use require("luasnip.loaders.from_vscode").lazy_load(), and add friendly-snippets as a dependency for LuaSnip, otherwise snippets might not be detected. If you don't use lazy_load() you might notice a slower startup-time

{
  "L3MON4D3/LuaSnip",
  dependencies = { "rafamadriz/friendly-snippets" },
}
use "rafamadriz/friendly-snippets"
Plug "rafamadriz/friendly-snippets"
:CocInstall https://github.com/rafamadriz/friendly-snippets@main

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']

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" },
}

Thanks to all contributors

A good portion of the snippets have been forked from the following repositories:


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4