Skip to content

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

@jasonshanks

Description

@jasonshanks

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,
  },
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions