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

Turn off indentation portion of the plugin. #182

Open
superDross opened this issue Nov 29, 2018 · 2 comments
Open

Turn off indentation portion of the plugin. #182

superDross opened this issue Nov 29, 2018 · 2 comments

Comments

@superDross
Copy link

I found that this plugin slowed down my editor a lot after installing. I did some profiling and found that the function GetJsxIndent() is the culprit.

I am not really too bothered about the indentation portion of this plugin but I value the syntax highlighting very much. I was wondering if there is a way to disable the auto indentation functionality of the plugin?

@superDross
Copy link
Author

Deleting the dir vim-jsx/after/indent/ seems to do the trick. However, it would be nice and cleaner to have a simple option available to turn it off in your vimrc.

@JonDum
Copy link

JonDum commented Feb 12, 2019

Dear jesus thank you @superDross

That indentexpr has been plaguing me for months if not years, constantly putting my brackets at weird ass spots and causing me to have to manually fix the indentation.

Removing that file was night and day. autoindent and smartindent get the job done better 99/100 than GetJsxIndent() did

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