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

CodeMirror 6 Support #6

Open
meatballs opened this issue Jul 28, 2022 · 2 comments
Open

CodeMirror 6 Support #6

meatballs opened this issue Jul 28, 2022 · 2 comments

Comments

@meatballs
Copy link
Contributor

Some of the sites I use have moved to CodeMirror 6 (e.g. https://repl.it) and I'm now getting problems using firenvim.

In particular, the filetype is no longer set correctly - everything now fires up in neovim as a .txt file and I have to set the filetype manually.

@meatballs
Copy link
Contributor Author

This CodeMirror Forum Thread suggests that the editor object can be found using:

document.querySelector(".cm-content").cmView.view

and this v5 to v6 migration guide gives some pointers on how to replace various function calls.

@meatballs
Copy link
Contributor Author

and this forum thread suggests it's not possible to detect the current language.

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

1 participant