-
Notifications
You must be signed in to change notification settings - Fork 74
Wrong indentation for custom elements without hyphens #98
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
Comments
I have submitted a PR for this. Meanwhile u can install from my repo for that functionality. https://github.com/ycmjason/html5.vim
|
I will try to fix this again. One quick workaround is by setting the variable let g:html_indent_inctags = 'custom,ele' Buffer variable also works too. |
There are some issues with indenting PascalCase custom tags (e.g. vim_indent_html.patch
|
I'm experiencing incorrect indentation when a custom element does not contain a hyphen. It is nesting the child content even with the tag.
I know that technically single word element names are not to spec, but they are very common now in frameworks such as Vue, and it would be nice if the html5.vim plugin just nested any element correctly regardless of name. Vue in particular specifies pascal cased names rather than kebab-cased in its default linting rules.
The text was updated successfully, but these errors were encountered: