Yggdroot / indentLine

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

Didn't work in hard indent file? #296

Open IstPlayer opened 4 years ago

IstPlayer commented 4 years ago

Hello, It seems that indentline does not work in hard indent mode (such as c), only displays in soft indent (such as python)

image image

I use neovim as the editor, the configuration is as follows

" indentline
"let g:indentLine_setColors = 0
"let g:indentLine_enabled   = 1
let g:indentLine_char_list = ['|', '¦', '┆', '┊']
"let g:indentLine_color_gui = '#F0F8FF'
Yggdroot commented 4 years ago

It works for all kinds of files. This should be a conflict with other confgurations or plugin, I see the <=, maybe that is it.

IstPlayer commented 4 years ago

It works for all kinds of files. This should be a conflict with other confgurations or plugin, I see the <=, maybe that is it.

Do you mean the conflict caused by the ligature in this font?

Yggdroot commented 4 years ago

please refer to #269 .

IstPlayer commented 4 years ago

please refer to #269 .

set noexpandtab makes the plugin work, but I don't want to replace tabs with spaces.😂

Swivelgames commented 4 years ago

but I don't want to replace tabs with spaces. :joy:

This.

hermitmaster commented 4 years ago

This plugin isn’t needed to show tab indents, use ‘set listchars’.