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

Update README.md #1265

Merged
merged 1 commit into from
Nov 30, 2024
Merged

Update README.md #1265

merged 1 commit into from
Nov 30, 2024

Conversation

heit0r
Copy link
Contributor

@heit0r heit0r commented Nov 29, 2024

Just to make clear it's needed a 'package.json' file with proper content in order to require("luasnip.loaders.from_vscode").lazy_load({ paths = { "./my-cool-snippets" } }) to work.

I think the way this section is written right now may lead the reader to think package.json may be just a config file that can be added later on. Personally, it took me too much time to figure out this (imho) detail. This necessity wasn't entirely clear for me even after reading the documentation. I know "vscode: any directory in runtimepath that contains a package.json contributing snippets." is clear enough, sure. But, idk. I had to read this 3 times to realize I didn't had this file in my snippets folder.

Hope this 2¢ may help other anxious people like me to set their cool snippets up. This is just a suggestion, please change it if you like. Thank you.

Just to make clear it's needed a 'package.json' file with proper content in order to require("luasnip.loaders.from_vscode").lazy_load({ paths = { "./my-cool-snippets" } }) to work.

I think the way this section is written right now may lead the reader to think package.json may be just a config file that can be added later on. Personally, it took me too much time to figure out this (imho) detail. This necessity wasn't entirely clear for me even after reading the documentation. Only after testing it by making the file and put the required content on it.

Hope this 2¢ may help other anxious people like me to set their cool snippets up. Thank you.
@L3MON4D3
Copy link
Owner

Hey, thank you for the addition, if it would've helped you it will surely help others :)

@L3MON4D3 L3MON4D3 merged commit 2592b91 into L3MON4D3:master Nov 30, 2024
1 of 2 checks passed
@heit0r heit0r deleted the patch-1 branch December 1, 2024 05:46
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

Successfully merging this pull request may close these issues.

2 participants