ellisonleao / gruvbox.nvim

Lua port of the most famous vim colorscheme
MIT License
1.81k stars 195 forks source link

[BUG] Elixir modules highlighted as white #325

Open NJichev opened 5 months ago

NJichev commented 5 months ago

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
ellisonleao commented 4 months ago

hey @NJichev what neovim version are you using?

NJichev commented 4 months ago

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