indentLine icon indicating copy to clipboard operation
indentLine copied to clipboard

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

Open hungpham3112 opened this issue 2 years ago • 4 comments

Sometime in Rust code I need to have a blank line but indentLine doesn'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.

hungpham3112 avatar Dec 30 '21 03:12 hungpham3112

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

nkoller avatar Jan 21 '23 23:01 nkoller

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

hungpham3112 avatar Jan 22 '23 03:01 hungpham3112

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

nkoller avatar Jan 22 '23 16:01 nkoller

g:indentLine_first_char = g:indentLine_char

It works, thanks

hungpham3112 avatar Jan 24 '23 06:01 hungpham3112