Add support for configuring transparent sidebar (#77)
Co-authored-by: Codico <>
This commit is contained in:
parent
26c68031b3
commit
7df343023f
@ -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 |
|
||||
|
@ -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)
|
||||
|
@ -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),
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user