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

Group names are wrongly formatted for tab styled group separators #856

Open
JoannesJ opened this issue Jan 26, 2024 · 1 comment
Open

Group names are wrongly formatted for tab styled group separators #856

JoannesJ opened this issue Jan 26, 2024 · 1 comment

Comments

@JoannesJ
Copy link

display_name isn't used for tab styled group separators.
This leads to e.g. "test name" being displayed as "test_name".

function separator.tab(group, hls, count)
local hl = hls.fill.hl_group
local indicator_hl = hls.buffer.hl_group
local indicator = {
{ highlight = hl, text = C.padding },
{ highlight = indicator_hl, text = C.padding .. group.name .. count .. C.padding },
{ highlight = hl, text = C.padding },
}
return { sep_start = indicator, sep_end = space_end(hls) }
end

@akinsho
Copy link
Owner

akinsho commented Jan 29, 2024

@JoannesJ if you could raise a PR for this fix that would be much appreciated 🚀

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