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

Clear LuaSnip cache on reload/snippets added #664

Merged
merged 1 commit into from
Dec 20, 2024
Merged

Conversation

Sahas-Ananth
Copy link
Contributor

Fixes #662 - Ensure the internal snippet cache is cleared whenever snippets are added or modified. This allows updated snippets to be reflected immediately without requiring a nvim restart, addressing the current behavior.

Hey, I think this piece of code fits well in source.new(opts). It works as intended, but if you believe there's a better place for it, let me know, and I’ll make the necessary changes!

Feel free to tell me if I need to make any other changes to this.

Ensure the internal snippet cache is cleared whenever snippets are added
or modified. This allows updated snippets to be reflected immediately
without requiring an nvim restart, addressing the current behavior.
@Saghen Saghen changed the title Fixes #662 - LuaSnip Source Cache Is Not Cleared When Snippets Are Updated Clear LuaSnip cache on reload/snippets added Dec 20, 2024
@Saghen
Copy link
Owner

Saghen commented Dec 20, 2024

Thank you!

@Saghen Saghen merged commit b1b58e7 into Saghen:main Dec 20, 2024
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.

LuaSnip Source Cache Is Not Cleared When Snippets Are Updated
2 participants