Skip to content

define_sign_text_highlights blows away user colors #176

@MarkLodato

Description

@MarkLodato

The function highlight#define_sign_text_highlights uses hi link which unconditionally blows away any user colors and instead reverts to the default color scheme. For example the user has

hi GitGutterAdd guifg=#123456 guibg=#789abc

then calling :GitGutterSignsEnable will blow away this change.

I think one potential solution is to:

  • rename GitGutterXDefault to GitGutterX
  • rename GitGutterX to GitGutterX2
  • use GitGutterX2 as the texthl of the signs

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions