docs: clear warning that settings need to come before loading the colorscheme

This commit is contained in:
Folke Lemaitre 2021-04-25 12:22:01 +02:00
parent 49b3b90798
commit 8041e49cf7

View File

@ -88,6 +88,8 @@ require('lualine').setup {
## ⚙️ Configuration ## ⚙️ Configuration
> ❗️ configuration needs to be set **BEFORE** loading the color scheme with `colorscheme tokyonight`
The theme comes in three styles, `storm`, a darker variant `night` and `day`. The theme comes in three styles, `storm`, a darker variant `night` and `day`.
| Option | Default | Description | | Option | Default | Description |
@ -113,6 +115,9 @@ vim.g.tokyonight_sidebars = { "qf", "vista_kind", "terminal", "packer" }
-- Change the "hint" color to the "orange" color, and make the "error" color bright red -- Change the "hint" color to the "orange" color, and make the "error" color bright red
vim.g.tokyonight_colors = { hint = "orange", error = "#ff0000" } vim.g.tokyonight_colors = { hint = "orange", error = "#ff0000" }
-- Load the colorscheme
vim.cmd[[colorscheme tokyonight]]
``` ```
```vim ```vim
@ -120,6 +125,9 @@ vim.g.tokyonight_colors = { hint = "orange", error = "#ff0000" }
let g:tokyonight_style = "night" let g:tokyonight_style = "night"
let g:tokyonight_italic_functions = true let g:tokyonight_italic_functions = true
let g:tokyonight_sidebars = [ "qf", "vista_kind", "terminal", "packer" ] let g:tokyonight_sidebars = [ "qf", "vista_kind", "terminal", "packer" ]
" Load the colorscheme
colorscheme tokyonight
``` ```
## 🍭 Extras ## 🍭 Extras