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

blame divider lines indistinguishable are from comment-dividers #1153

Open
chrisgrieser opened this issue Dec 8, 2024 · 1 comment
Open

Comments

@chrisgrieser
Copy link

chrisgrieser commented Dec 8, 2024

I noticed that gitsigns uses ----… to divide lines in the file blame. Now, it just so happens that I also use -----… comments to separate sections of my code.

And since the file blame dividers also use the same highlight group as comments, they are practically indistinguishable, making the blame output hard to read:

Showcase

Thus, my suggestion would be to make the highlight group and/or the character used for those lines configurable.

While the hlgroup is indeed hardcoded, the character is in fact affected by fillchars, and so at least changable (somewhat):

local fillchar = string.rep(vim.opt.fillchars:get().diff or '-', 1000)
api.nvim_buf_set_extmark(main_buf, ns, i - 1, 0, {
virt_lines = { { { fillchar, 'Comment' } } },

@lewis6991
Copy link
Owner

Yes, uses fillchars.

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

2 participants