Closed rhesadaiva closed 2 months ago
The file probably gets formatted when you save, and the indentation changes from spaces to tabs.
Take a look at :help ibl.config.indent.tab_char
to configure how tabs get displayed.
This is happening to me on file open, not save, so it's not a format issue. But it only seems to happen for some languages. LUA seems fine, Go does not for example.
It doesn't happen after formatting for you because your file is already indented with tabs.
This is the correct behavior, please read :help ibl.config.indent.tab_char
So what you're saying is the intended behavior is to only show solid lines for space indented files? I've read the 2 help lines mentioned, it doesn't help explain the intended behaviour.
How spaces are displayed is configured with ibl.config.indent.char
.
How tabs are displayed is configured with ibl.config.indent.tab_char
.
If you do not set ibl.config.indent.tab_char
in your config, it defaults to :help lcs-tab
if :help 'list'
is set, otherwise it uses ibl.config.indent.char
.
You have 'list'
set, and tab in listchars set to >>
. So that is what ibl is using.
This is explained in the help file.
Problem
Hello, i have an old PHP project which i need to maintain, when i open the file for the first time, it shows the default indentline
"|"
When i do some editing and save, the indentation change into
">>"
Steps to reproduce
And for the colors, i create a custom color palette which code like this
Expected behavior
It should return a normal indentline instead of
">>"
Neovim version (nvim -v)
0.9.5