Closed topisani closed 7 months ago
In a file where indentation is done with tabs, does the tab-highlighting or ident-highlighting win? What happens if tabstop
and indentwidth
are set to different values?
In a file where indentation is done with tabs, does the tab-highlighting or ident-highlighting win? What happens if
tabstop
andindentwidth
are set to different values?
Indent guides currently only highlight leading spaces, according to indentwidth. So tab highlighting and indent highlighting never interact. If you want similar indent guides for tabs, they were always, and are still, possible using the tab highlighter. We could consider using this logic for both preceding tabs and spaces though, but as I see it, this is the most useful design, to still easily be able to differentiate tabs and spaces
Nice, my only comment is whether we need a separate WhitespaceIndent
face, I suspect it not really necessary. I'll merge it as-is for now but might remove that face later on if I cant find a good justification for it.
A couple of semi-opinionated choices were made in this implementation:
WhitespaceIndent
face.-indent ""
.Additionally, we could consider adding a separate face for the "current" indent level as many editors do, but this is a bit harder in kakoune because of multiple selections.
Closes #2323