luisiacc / gruvbox-baby

Gruvbox theme for neovim with full 🎄TreeSitter support.
MIT License
390 stars 28 forks source link

Override highlight comment doesn't work? #59

Closed guoliang closed 1 year ago

guoliang commented 1 year ago

Hi, I have the following setting, and my question is specifically about the override of comment which I think should change the text color of comments to orange, but it did not change the color at all.

{
    "luisiacc/gruvbox-baby",
    branch = "main",
    config = function()
        local colors = require("gruvbox-baby.colors").config()

        vim.o.termguicolors = true
        vim.g.gruvbox_baby_background_color = "medium"
        vim.g.gruvbox_baby_highlights = {
            ["@variable.builtin"] = { fg = colors.orange },
            DiagnosticUnderlineError = { sp = "#ff0000", style = "undercurl" },
            LineNr = { fg = "#DEDEDE" },
            CursorLineNr = { fg = "#FFB81C" },
            Comment = { fg = colors.orange },
        }
        vim.g.gruvbox_baby_transparent_mode = 1
    end,
},
luisiacc commented 1 year ago

Hi, I think it's because the comment highlights are highlighted from the "@comment" group, which is the treesitter group(the ones that are used), the Comment is the default group.

guoliang commented 1 year ago

thanks, I needed to use @comment.