Yggdroot / indentLine

A vim plugin to display the indention levels with thin vertical lines
MIT License
4.13k stars 227 forks source link

The lines doesn't appear for two characters indentation, only for 4 characters and so on #348

Closed hrqmonteiro closed 3 years ago

hrqmonteiro commented 3 years ago

2021-02-07_12-24

I have set tabstop=2, set shiftwidth=2, set expandtab and set smarttab activated. Why does the plugin don't show the indentlines at two spaces, only at four spaces?

Yggdroot commented 3 years ago

doesn't the picture show the expected behavior?

MaMrEzO commented 3 years ago

Expected behavior: Screenshot_20210318_152256

And unexpected one with 2 spcs: Screenshot_20210318_152527

with 4 spcs: Screenshot_20210318_152629

Dart code formatter uses 3 spcs!!!!: This is too bad! Screenshot_20210318_152739

Yggdroot commented 3 years ago

Expected behavior: Screenshot_20210318_152256

And unexpected one with 2 spcs: Screenshot_20210318_152527

with 4 spcs: Screenshot_20210318_152629

Dart code formatter uses 3 spcs!!!!: This is too bad! Screenshot_20210318_152739

this is because your vim setting &sw is 4. https://github.com/Yggdroot/indentLine/blob/5617a1cf7d315e6e6f84d825c85e3b669d220bfa/doc/indentLine.txt#L172-L176

hrqmonteiro commented 3 years ago

Expected behavior: Screenshot_20210318_152256

And unexpected one with 2 spcs: Screenshot_20210318_152527

with 4 spcs: Screenshot_20210318_152629

Dart code formatter uses 3 spcs!!!!: This is too bad! Screenshot_20210318_152739

That is exactly my point. And my shiftwidth is set to 2, and it still doesn't show the expected behaviour.

hrqmonteiro commented 3 years ago

Expected behavior: Screenshot_20210318_152256 And unexpected one with 2 spcs: Screenshot_20210318_152527 with 4 spcs: Screenshot_20210318_152629 Dart code formatter uses 3 spcs!!!!: This is too bad! Screenshot_20210318_152739

this is because your vim setting &sw is 4.

https://github.com/Yggdroot/indentLine/blob/5617a1cf7d315e6e6f84d825c85e3b669d220bfa/doc/indentLine.txt#L172-L176

Still doesn't work for me. Indentlines only show for 4 spaces and so on.