mxw / vim-jsx

React JSX syntax highlighting and indenting for vim.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Turn off indentation portion of the plugin.

superDross opened this issue · comments

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?

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.

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