Skip to content

Background color indentation guides to be a single char wide #950

@hernancerm

Description

@hernancerm

Problem

The background color indentation guides occupy the full indent depth. For exampe, if the code is indented at 4 spaces, as in the screenshot below, then the background color has a width of 4 characters.

The problem I see with this behavior is that the required alternation of highlight groups, such as "CursorColumn" and "Whitespace" as per the README.md, results in some indentations of the same type of structure not being highlighted, which is confusing at least for me.

image

Expected behavior

There exists some way to configure the background color indentation guides to look as in the image below. That is to say, the indentation guides are drawn using a single background color of width 1 char and starting where the indent begins.

image

I created the image using https://github.com/preservim/vim-indent-guides. Although vim-indent-guides is able to achieve the look I want, the plugin has issues such as not being able to show the background color on blank lines and it repeats the indentation guide on line continuations.

Thx for this plugin :) If you feel this is out of scope or too niche, feel free to close.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions