Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to group multiple snippet files for a single language in a subdirectory? #191

Open
brijow opened this issue May 7, 2021 · 1 comment

Comments

@brijow
Copy link

brijow commented May 7, 2021

I have set

let g:vsnip_snippet_dir = expand("~/.config/nvim/vsnips")

and started creating some python snippets in ~/.config/nvim/vsnips/python.json, which works fine.

However, I would like to group multiple files of python snippets together in a subdirectory, something like this:

vsnips/python/general.json
vsnips/python/pytest.json
vsnips/python/pandas.json
...

etc.

How can I tell vim-vsnip to read all snippets from a subdirectory like this when I have many snippets for that language?

@hrsh7th
Copy link
Owner

hrsh7th commented Jun 1, 2021

Sorry. vsnip does not support it. (and I have no plan...)

Probably, VSCode has similar feature... (But I don't know the feature details.)

https://github.com/golang/vscode-go/blob/master/snippets/go.json#L2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants