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

javascript.json snippets from friendly-snippets stop work in .ts and .tsx files #241

Closed
timsofteng opened this issue Dec 15, 2021 · 2 comments

Comments

@timsofteng
Copy link

timsofteng commented Dec 15, 2021

Hello. I've noticed that javascript snippets stop work in typescript files with .ts and .tsx extension.
It works before.

@timsofteng timsofteng changed the title javascript.json snippets from friendly-snippets stop work in .tsx files javascript.json snippets from friendly-snippets stop work in .ts and .tsx files Dec 15, 2021
@L3MON4D3
Copy link
Owner

Yes, that was a change in friendly-snippet, see here for a discussion.

The TLDR is that you need to call

require("luasnip").filetype_extend("typescript", {"javascript"})

somewhere in your config.

@timsofteng
Copy link
Author

Thanks!

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