-
-
Notifications
You must be signed in to change notification settings - Fork 245
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
Load workspace setting snippets from .vscode dir #850
Comments
We are having a "discussion" about it right now, check here and (as ex-vscode user) help us to define what you need there. |
Hey @leiserfg, the need for me is to somehow load project specific .code-snippets files automatically. That way I can work across different repos without having to add all of those project specific snippets to my lua config. Let me know if there's anything else I can clear up, I did take a quick look at the comments in that PR and I think this comment makes sense to me as a solution that would be able to accommodate my use case. Thanks again for all of y'alls hard work! |
As a workaround you can pass absolute path to the |
Adding on to this but not from a vscode perspective, is it possible to have something which loads a relative path (e.g. a |
Oh, that's possible already, call require("luasnip.loaders.from_lua").load({paths = {vim.fn.getcwd() .. "/.luasnippets/"}}) ( |
@changangus you can follow #894, it'll implement/enable this :) |
This has worked for some time now, since #1033 we can also detect .code-snippets-files created while the session is running. |
Hi,
First off thanks for the awesome project, it's much appreciated! I was wondering if there's a way to load snippets from a VScode workspace directory. Here's a screenshot of where the snippets are located:
I saw that it's possible to add a path to custom snippets from my lua config, but I was hoping to not have to manage workspace specific snippets in there.
The text was updated successfully, but these errors were encountered: