Closing braces on nested rules are not auto-formatted properly
Closed this issue · 4 comments
brantb commented
If I re-indent a file containing nested rules such as the one below (using a command like gg=G
), the closing brace of the innermost nested rule is not properly indented.
Input
ul.article {
width: 500px;
ul {
margin-left: 0;
li {
list-style-type: round;
}
}
}
Output
ul.article {
width: 500px;
ul {
margin-left: 0;
li {
list-style-type: round;
}
}
}
andrewheins commented
I have the same issue.
Running in iTerm2 on 10.7.3
gkoberger commented
Same problem. @groenewege, is it possible something else you have installed is properly taking care of the indenting?
gkoberger commented
Found a fix. Use this as your .vim/indent/css.vim
:
https://gist.github.com/762326/bcbd35239db7f26447f1c2323037d20a5219471d
mriva commented
thanks for the fix @gkoberger !