Yggdroot / indentLine

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

How to have indentLine in blank line and in the first column #366

Open hungpham3112 opened 2 years ago

hungpham3112 commented 2 years ago

Sometime in Rust code I need to have a blank line but indentLinedoesn't put the vertical line into it.

And I also need the vertical line in first column like in VSCode. I think it's prettier. Thanks for helping.

nkoller commented 1 year ago

huge +1 to your first point, I wish broken lines like these could be attached across empty lines image

for your second point, I think you can do let g:indentLine_showFirstIndentLevel = 1

hungpham3112 commented 1 year ago

huge +1 to your first point, I wish broken lines like these could be attached across empty lines image

for your second point, I think you can do let g:indentLine_showFirstIndentLevel = 1

Cool, it's good to know. Thanks EDIT: I applied your suggestion to my settings. Seems like showFirstIndentLevel not respect to g:indentLine_char = '│'

image

nkoller commented 1 year ago

oh it looks like you have to set g:indentLine_first_char = '|' as well (or g:indentLine_first_char = g:indentLine_char)

hungpham3112 commented 1 year ago

g:indentLine_first_char = g:indentLine_char

It works, thanks