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

Can local color scheme before/after options be combined with Global options? #40

Open
jasonshanks opened this issue Jan 2, 2025 · 0 comments

Comments

@jasonshanks
Copy link

jasonshanks commented Jan 2, 2025

This is working in most themes I have installed except some it is ignoring this setting. As an example:

  • Material (is working fine)
  • OneDark which explicitly says it has a style option to support transparent = true (ignores). Yes I have tried re-iterating this in the colorscheme's local Before.

Here is my config for this:

return {
-- Colorschemes
{
    "marko-cerovac/material.nvim",
    "navarasu/onedark.nvim",
},
-- Themery color switcher
 {
    "zaldih/themery.nvim",
    lazy = false,
    config = function()
      require("themery").setup({
        themes = {
        {
            name = "Material Deep Ocean",
            colorscheme = "material",
            before = [[
            vim.g.material_style = "deep ocean"
            ]],
          },
        {
            name = "OneDark Deep",
            colorscheme = "onedark",
            before = [[
            style = 'deep'
            ]],
        },
       },
        globalBefore = [[
          transparent = true
          styles = {
            sidebars = "transparent",
            floats = "transparent",
          }
        ]],
      })
    end,
  },
}
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

No branches or pull requests

1 participant