Add support for configuring transparent sidebar ()

Co-authored-by: Codico <>
This commit is contained in:
codicocodes 2021-08-05 09:29:08 +02:00 committed by GitHub
parent 26c68031b3
commit 7df343023f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 1 deletions

View File

@ -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 |

View File

@ -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)

View File

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