Skip to content
This repository has been archived by the owner on Jul 29, 2023. It is now read-only.

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

Open
hungpham3112 opened this issue Dec 30, 2021 · 4 comments
Open

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

hungpham3112 opened this issue Dec 30, 2021 · 4 comments

Comments

@hungpham3112
Copy link

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.

@nkoller
Copy link

nkoller commented Jan 21, 2023

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
Copy link
Author

hungpham3112 commented Jan 22, 2023

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
Copy link

nkoller commented Jan 22, 2023

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

@hungpham3112
Copy link
Author

g:indentLine_first_char = g:indentLine_char

It works, thanks

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants