Skip to content

Loading VSCode snippets

dcampos edited this page Aug 10, 2022 · 2 revisions

Although Snippy doesn't support loading VSCode-like snippets, it's possible to use snippet-converter.nvim to convert them automatically to the SnipMate format. Below is an example configuration for SnippetConverter that does just that:

local template = {
    sources = {
        vscode = {
            './friendly-snippets/snippets/'
        }
    },
    output = {
        snipmate = {
            vim.fn.stdpath('data') .. '/site/snippets',
        }
    }
}

require('snippet_converter').setup({
    templates = { template, }
})

Please refer to their docs for more info on the configuration options.

Clone this wiki locally