diff --git a/README.md b/README.md index 6dcbe5d..7c63747 100644 --- a/README.md +++ b/README.md @@ -119,6 +119,7 @@ The **day** style will be used if: | tokyonight_transparent | `false` | Enable this to disable setting the background color | | tokyonight_hide_inactive_statusline | `false` | Enabling this option, will hide inactive statuslines and replace them with a thin border instead. Should work with the standard **StatusLine** and **LuaLine**. | | tokyonight_sidebars | `{}` | Set a darker background on sidebar-like windows. For example: `["qf", "vista_kind", "terminal", "packer"]` | +| tokyonight_transparent_sidebar | `false` | Sidebar like windows like `NvimTree` get a transparent background | tokyonight_dark_sidebar | `true` | Sidebar like windows like `NvimTree` get a darker background | | tokyonight_dark_float | `true` | Float windows like the lsp diagnostics windows get a darker background. | | tokyonight_colors | `{}` | You can override specific color groups to use other groups or a hex color | diff --git a/lua/tokyonight/colors.lua b/lua/tokyonight/colors.lua index 31ad602..3f66e27 100644 --- a/lua/tokyonight/colors.lua +++ b/lua/tokyonight/colors.lua @@ -74,7 +74,7 @@ function M.setup(config) colors.bg_statusline = colors.bg_dark -- Sidebar and Floats are configurable - colors.bg_sidebar = config.darkSidebar and colors.bg_dark or colors.bg + colors.bg_sidebar = (config.transparentSidebar and colors.none) or config.darkSidebar and colors.bg_dark or colors.bg colors.bg_float = config.darkFloat and colors.bg_dark or colors.bg colors.bg_visual = util.darken(colors.blue0, 0.7) diff --git a/lua/tokyonight/config.lua b/lua/tokyonight/config.lua index 2960b0f..565a708 100644 --- a/lua/tokyonight/config.lua +++ b/lua/tokyonight/config.lua @@ -30,6 +30,7 @@ config = { dev = opt("dev", false), darkFloat = opt("dark_float", true), darkSidebar = opt("dark_sidebar", true), + transparentSidebar = opt("transparent_sidebar", false), transform_colors = false, lualineBold = opt("lualine_bold", false), }