Closed g-h-97 closed 4 years ago
IndentLine shows indent lines according to shiftwidth
and tabstop
, if you are not satisfied with the place showing the indent lines , it is probable that you don't set the value of shiftwidth
properly.
the discountinuity can not be solved.
thanks alot for the replay @Yggdroot, as for the discountinuity issue I guess I've found a way around it, simply by filling in the new lines with spaces as needed.
here is an example :
before :
After :
however am not entirely sure how to implement such thing, since am not into vim plugins scripting; I genuinely think that I'ts doable so I might possibly give it a try using some sort of a bash / python script.
and it would be amazing if this can be done right in indetLine
plugin.
Best regards
the discountinuity can not be solved.
The indent-blankline.nvim plugin cleverly uses Neovim's virtual text feature to render indent markers on blank lines. This is a Neovim only feature.
@xradiation, I would not recommend inserting spaces, check out the indent-blankline.nvim plugin in combination with Neovim.
P.S. I have no affiliation with the indent-blankline plugin.
well, it's kind of strange that I've actually never heard of this plugin before, but I guess here we go. am really greatful @bluz71 for your suggestion, it does exactly what I wanted to do :
however, as it seems in lines +1
& +8
at the second
and fourth
columns respectively, the plugin has some strage "bug" where it's not supposed to render indent lines, any ways it's just a little thing that I can live with for now.
I really hope that @Yggdroot will merge this plugin, if possible that is. again really appreciated you help @bluz71 , @Yggdroot .
Edit : increasing the shiftwidth
, softtabstop
& tabstop
from 2 to 3 sort of solved the issue that I stated earlier.
is there is a way to solve the discountinuity in the lines as shown above ?
also why the code structure must be perfectly right for the plugin to work at all, in other words i use a code prettifier
coc-prettier
in order to bringe the code to the right shape and only thenindentLine
starts to make sense where to put the indent lines.is there is any way so that the
indentLine
shows the indentation lines regardless of the code structure? ( Note : VSCode is perfectly capable of doing that ), this is really helpfull to spot some missing opening or closing tags or brackets here and there.Amazing plugin BTW @Yggdroot, appreciated.
Any help is much appreciated.