-
-
Notifications
You must be signed in to change notification settings - Fork 103
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
Indentation for multi-line elements #119
Comments
I think this is something that we could fix in this plugin, since it is common for tags in Vue templates to have a lot of attributes. Same applies to self-closing tags. |
Awesome! I'm not real clear on the resolution, though. Would you prefer to accept a PR, or do you mean that when time permits this will be fixed by the maintainers? I wouldn't mind taking a stab at it, but my vimscript-fu is pretty weak so it might be awhile if it's up to me 😆 |
I'm planning to do this sometime. |
This seems to be a problem with Vim itself. When I open a normal html file and format it the same way I format my vue file then I get the same behavior described above. I tracked it to |
Hey folks! Any updates on this or some known workaround? |
I'm using sheerun/vim-polyglot, which makes use of this (and several other packages). It looks like indenting correctly on elements with attributes on their own line works differently than I expect.
In #31 you mention that it would likely be better for that user to suggest changes to othree/html5.vim. Do you suggest I do the same here?
Expected:
Actual:
The text was updated successfully, but these errors were encountered: