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

Use generic color names from palette in overrides and other plugins setup code #319

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

darkangel-ua
Copy link
Contributor

I did couple of tries and came with this design. Now we can use

    local colors = require('gruvbox').palette
    require("gruvbox").setup({
        contrast = "hard",
        overrides = {
            SignColumn = { bg = colors.bg0 },
            GruvboxRedSign = { bg = colors.bg0 },

as well as

    local colors = require('gruvbox').palette
    require("bufferline").setup({
        highlights = {
            fill = {
                bg = colors.bg0,
            },

and bg0 will be correct in both cases and for any background/contrast combinations we use.
#306

@ambroisie
Copy link

I'm quite interested in making use of this, or any solution which exposes the plug-ins palette rather than requiring hard-coding of colors in setup.

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

Successfully merging this pull request may close these issues.

2 participants