feat: use background setting to determine light / dark theme #15

This commit is contained in:
Folke Lemaitre
2021-04-25 15:50:02 +02:00
parent 8041e49cf7
commit f7b4afbba2
5 changed files with 27 additions and 21 deletions

View File

@@ -92,6 +92,11 @@ require('lualine').setup {
The theme comes in three styles, `storm`, a darker variant `night` and `day`.
The **day** style will be used if:
+ `vim.g.tokyonight_style == "day"`
+ or `vim.o.background == "light"`
| Option | Default | Description |
| ----------------------------------- | --------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| tokyonight_style | `"storm"` | The theme comes in three styles, `storm`, a darker variant `night` and `day`. |