-
Notifications
You must be signed in to change notification settings - Fork 95
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
Incorrect indentation #120
Comments
Oh, I just noticed that indentation seems to be working when I end lines with a semi colon |
Looks like using
instead of
fixes the indentation issue. |
I'm using
The indentation still doesn't work well while entering a new line between<>and</>.
But it works well if the file set autoindent. I found that vim-javascript set noautoindent to be default recently. Maybe it is a point. |
vim-javascript keeps changing, and they don't want to merge code related to jsx, so I made |
Just a heads up I had this same issue and fixed it by installing https://github.com/vim-scripts/JavaScript-Indent |
@JESii—Could you try minimizing your example and posting it as a Gist or a pastebin or in some other text format, along with a screenshot of the issue? I'll try to debug. |
Bump - any news on this? Whenever I type in tags all nested tags just ignore indentation and it can be quite frustrating to use vim when developing React without fixing this. |
The update is that I can't repro this and nobody has given me a reduced ~/.vimrc that yields a repro. |
I've run into these indentation issues as well. I've forked
That seems to fix the issue, so the problem must have appeared recently. I've moved How to reproduce I'm testing the issue with some JavaScript code similar to this one: const whatever = () => ({
foo: 'bar', }); If the issue is present, positioning the cursor after const whatever = () => ({
foo: 'bar',
}); When the issue is not present, positioning the cursor after const whatever = () => ({
foo: 'bar',
}); To test the issue I also add some JSX below that and check if it is indented properly when writing it, and if it is syntax-highlighted properly. This is the minimal
Hope that this helps, and thanks for your plugin! :) |
I've taken a look at this again and I think that the issue no longer seems to happen with the latest versions of the plugins. I think that we can close this issue @olalonde. |
I have added:
Helped for me |
For some reason, indentation doesn't seem to work properly anymore :(
The text was updated successfully, but these errors were encountered: