groenewege/vim-less

Bad Indention

bayleedev opened this issue · 1 comments

There seems to be an issue with indention. This is the simplest example I could come up with. I have this formatted LESS:

td > table.sub {
    width: 100%;
    * {
        padding: 0;
    }
}

Formatting with = causes:

td > table.sub {
    width: 100%;
           * {
               padding: 0;
           }
       }

Hi everyone,

I wrote this plugin a time ago when I was trying out Vim and didn't find a plugin for LESS syntax.
I no longer use VIM or LESS and I am no vim script master.
I tried fixing this problem by looking at the haml / sass plugin.
Please let me know if everything is ok now.

best regards,
gunther