chrisgrieser / nvim-scissors

Automagical editing and creation of snippets.
MIT License
352 stars 3 forks source link

Feature Request: Being able to edit snippets from other providers #3

Closed Rizhiy closed 8 months ago

Rizhiy commented 8 months ago

Feature Requested

Not sure if it is possible, but being able to edit snippets from other providers (e.g. friendly-snippets) would be useful. Perhaps add a new snippet with the same name, but higher priority.

Relevant Screenshot

No response

Checklist

chrisgrieser commented 8 months ago

You already can edit snippets from friendly snippets. Just set the location where friendly snippets is installed as your snippetDir

Rizhiy commented 8 months ago

To save people time, here is the setting when using lazy.nvim:

{
    "chrisgrieser/nvim-scissors",
    opts = { snippetDir = vim.fn.stdpath("data") .. "/lazy/friendly-snippets" },
},
chrisgrieser commented 8 months ago

Be aware that editing them specify also saves them in the friendly snippets plugin dir, meaning changes you make will be lost as soon as friendly snippets is updated.

Copying some snippet files from friendly snippets into your own snippet collection might make more sense