Indent Blankline doesn't render for Go file #905
-
I've been using indent blankline for a while and lately i've been having issue with it on a Golang file. Usually in other file ex. rust the indent blankline was rendered like shown in the image below But for Go file for some reasone the line isn't rendered, and this only happens after using a formatter like go fmt, gofumpt, or cloning a fresh go file form remote repository. N.B. The shiftwidth and tabstop is set to 2, that's why the indentation looks close with each other here. I presume this because Go (and hence the formatter) use tab for indentation and each tab is recognized as one spaces and that's what made this isn't recognized as one tab indent by the plugins, because if i indent it manually by clicking tab (which recognized as 2 or 4 spaces depending on the tabstop config) the indentation rendered successfully. I just want to make sure if any solutions or maybe someone here had similar problem as this Thanks 😄 |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Please use the minimal reproduction template to reproduce this. It is very likely a configuration issue somewhere in your config. |
Beta Was this translation helpful? Give feedback.
-
Yep looks like you're right. Using minimal config does render the indent line. So probably the bug was caused by configuration issue in the indent-blankline config that i have. Do you have any suggestion on where to look out in the config regarding this? |
Beta Was this translation helpful? Give feedback.
How the tab char is decided is documented under
:help ibl.config.indent.tab_char