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

[BUG] Overriding with bold = false has no effect (while bold = true overrides) #323

Open
Galicarnax opened this issue Mar 16, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@Galicarnax
Copy link

Galicarnax commented Mar 16, 2024

Describe the bug

In the default setup, function and method names are in bold, and I want then in normal font. I don't want to put bold = false in config, as I need bold in other parts. So I apply overriding:

      overrides = {
        ["@lsp.type.function"] = { bold = false },
        ["@lsp.type.method"] = { bold = false },
      }

but this has no effect. Yet, if I also override colors:

      overrides = {
        ["@lsp.type.function"] = { fg = "#8ec07c", bold = false },
        ["@lsp.type.method"] = { fg = "#8ec07c", bold = false },
      }

the color is overridden, but the boldness is not (still bold).
If I override the other way round, e.g.:

      overrides = {
        ["@lsp.mod.readonly"] = { bold = true },
      }

this works (constants in C++ become bold).

Expected behaviour

Highlight groups overridden with bold = false should not remain in bold.

@Galicarnax Galicarnax added the bug Something isn't working label Mar 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants