feat: dark background for sidebars & floats is now configurable
This commit is contained in:
parent
3eecf159d0
commit
2bbe65e0c3
@ -89,6 +89,8 @@ The theme comes in two styles, `storm` and a darker variant `night`.
|
|||||||
| tokyonight_transparent | `false` | Enable this to disable setting the background color |
|
| 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_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: `["quickfix", "__vista__", "terminal"]` |
|
| tokyonight_sidebars | `{}` | Set a darker background on sidebar-like windows. For example: `["quickfix", "__vista__", "terminal"]` |
|
||||||
|
| 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. |
|
||||||
|
|
||||||
```lua
|
```lua
|
||||||
-- Example config in Lua
|
-- Example config in Lua
|
||||||
|
@ -47,10 +47,14 @@ function M.setup(config)
|
|||||||
colors.border_highlight = colors.blue0
|
colors.border_highlight = colors.blue0
|
||||||
colors.border = colors.black
|
colors.border = colors.black
|
||||||
|
|
||||||
|
-- Popups and statusline always get a dark background
|
||||||
colors.bg_popup = colors.bg_dark
|
colors.bg_popup = colors.bg_dark
|
||||||
colors.bg_sidebar = colors.bg_dark
|
|
||||||
colors.bg_statusline = colors.bg_dark
|
colors.bg_statusline = colors.bg_dark
|
||||||
colors.bg_float = colors.bg
|
|
||||||
|
-- Sidebar and Floats are configurable
|
||||||
|
colors.bg_sidebar = config.darkFloat 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)
|
colors.bg_visual = util.darken(colors.blue0, 0.7)
|
||||||
colors.bg_search = colors.blue0
|
colors.bg_search = colors.blue0
|
||||||
colors.fg_sidebar = colors.fg_dark
|
colors.fg_sidebar = colors.fg_dark
|
||||||
|
@ -21,6 +21,8 @@ config = {
|
|||||||
terminalColors = opt("terminal_colors", true),
|
terminalColors = opt("terminal_colors", true),
|
||||||
sidebars = opt("sidebars", {}),
|
sidebars = opt("sidebars", {}),
|
||||||
dev = opt("dev", false),
|
dev = opt("dev", false),
|
||||||
|
darkFloat = opt("dark_float", true),
|
||||||
|
darkSidebar = opt("dark_sidebar", true),
|
||||||
}
|
}
|
||||||
|
|
||||||
return config
|
return config
|
||||||
|
Loading…
Reference in New Issue
Block a user