Open ofseed opened 3 months ago
Project-scoped snippets would indeed be nice, however, adding support for them to nvim-scissors would be in vain, since to my knowledge, there is no snippet engine plugin that uses them. There is no point in creating project snippets if there is no way to use them.
Please create feature requests at snippet engine plugins like nvim-snippets. As soon as there is a supporting snippet engine, this issue can be re-opened.
It's supported in luasnip, see https://github.com/L3MON4D3/LuaSnip/blob/master/DOC.md#standalone.
While luasnip did not support automatically loading it, writing an autocmd of DirChange
to load it is not that hard. The most important feature to support it is to support the scope
key, which luasnip implemented.
Oh, didn't know that luasnip supports it, my bad
I created a FR at nvim-snippets: https://github.com/garymjr/nvim-snippets/issues/53
edit: and at blink.cmp: https://github.com/Saghen/blink.cmp/issues/197
Feature Requested
Thank you for making such a convenient plugin to create snippets, this encouraged me a lot to use snippets and made I code faster!
I think it could be nicer. Since we are easy to create snippets by leveraging this plugin, I wish it could support project scope snippets, in other words, create snippets in
.vscode/<name>.code-snippets
, and markscope
of the new snippets to the filetype of the current editing file.Relevant Screenshot
Reference: https://code.visualstudio.com/docs/editor/userdefinedsnippets#_project-snippet-scope
Checklist