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] Elixir modules highlighted as white #325

Open
NJichev opened this issue Mar 18, 2024 · 2 comments
Open

[BUG] Elixir modules highlighted as white #325

NJichev opened this issue Mar 18, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@NJichev
Copy link

NJichev commented Mar 18, 2024

Describe the bug

The elixir modules are being highlighted as white.

This is caused by this: ["@module"] = { link = "GruvboxFg1" }, which was added here.

Expected behaviour

They should be yellow as they've previously been, since it's a functional language.
For now I've added this as an override:

        overrides = {
          ["@module.elixir"] = { link = "GruvboxYellow" }
        }

My guess was that previously treesitter returned this as the token to highlight:

    -- gruvbox.lua
    elixirModuleDeclaration = { link = "GruvboxYellow" },

Screenshots

Here's a screenshot without the overrides:
Screenshot 2024-03-18 at 17 47 03

And a screenshot with the override:

image

Edit: I've overridden the background colour to pure black, hence why it might not look like gruvbox at start, I think it looks dope with this background colour

Edit2: This is the result of :Inspect (without the override)

Treesitter
  - @module.elixir links to GruvboxFg1 elixir
@NJichev NJichev added the bug Something isn't working label Mar 18, 2024
@ellisonleao
Copy link
Owner

hey @NJichev what neovim version are you using?

@NJichev
Copy link
Author

NJichev commented Mar 26, 2024

I am using 0.9.2 and it didn't work on nightly as well.

Edit: I lied, I am using 0.9.5 locally

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