Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Allow fillcharhl to be a table of two elements (or a function) #153

Open
Nawar9 opened this issue Jan 15, 2025 · 0 comments

Comments

@Nawar9
Copy link

Nawar9 commented Jan 15, 2025

It would be nice to have the ability to define two highlight groups for the fillchar of signs: one for the focused line ('cursorline' with v:relnum == 0) and another for non-focused lines.

Example:

image

A potential API could allow defining highlight groups as follows:

fillcharhl = { "GitSignsFillChar", "GitSignsFillCharCursorLine"}

Another option:

fillcharhl = function(args)
    return (args.cul and args.relnum == 0) and  "GitSignsFillCharCursorLine" or "GitSignsFillChar"
end

Note: The same functionality could also apply to the hl key of segment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant