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

jsx plugin break matchit after reloading file multiple time #364

Closed
mars90226 opened this issue Jan 10, 2019 · 6 comments
Closed

jsx plugin break matchit after reloading file multiple time #364

mars90226 opened this issue Jan 10, 2019 · 6 comments

Comments

@mars90226
Copy link

When using :edit to reload jsx file, the b:match_words variable is appended with the jsx match words again. After multiple reloads, vim will complain E51: Too many '(' when using % to jump to matching parenthese.

@sodiumjoe
Copy link

I'm also running into this issue. It looks like https://github.com/mxw/vim-jsx is no longer maintained, might need to find an alternative.

@mars90226
Copy link
Author

I've created a merge request to fix this issue in mxw/vim-jsx#187. After merging, I'll create another merge request to fix this issue here.

@afk-mario
Copy link

A fork was made by @amadeus https://github.com/amadeus/vim-jsx

@mars90226
Copy link
Author

I also notice this fork, but I'm not sure if it's good to create a merge request that replace vim-jsx with this fork. Currently, I think the best way is disabling jsx in vim-polyglot and manually using this fork.

@sheerun sheerun closed this as completed in 2c59360 Mar 4, 2019
@sheerun
Copy link
Owner

sheerun commented Mar 4, 2019

vim-polyglot switched to @amadeus fork and his xml plugin for now, hope it fixes some things. I hope @mxw will find time to merge changes to original repository, then we'll probably switch back

@mars90226
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

4 participants