docs: correct brighten to lighten in README and doc code snippet (#372)
* Correct brighten to lighten in README code snippet Add comment to explain how lighten works * Correct brigthen as lighten in doc --------- Co-authored-by: G Roques <g.roques@charter.com>
This commit is contained in:
parent
f2ed28707a
commit
f3723ba6e8
@ -268,7 +268,7 @@ local colors = require("tokyonight.colors").setup() -- pass in any of the config
|
||||
local util = require("tokyonight.util")
|
||||
|
||||
aplugin.background = colors.bg_dark
|
||||
aplugin.my_error = util.brighten(colors.red1, 0.3)
|
||||
aplugin.my_error = util.lighten(colors.red1, 0.3) -- number between 0 and 1. 0 results in white, 1 results in red1
|
||||
```
|
||||
|
||||
## 🔥 Contributing
|
||||
|
@ -294,7 +294,7 @@ config:
|
||||
local util = require("tokyonight.util")
|
||||
|
||||
aplugin.background = colors.bg_dark
|
||||
aplugin.my_error = util.brighten(colors.red1, 0.3)
|
||||
aplugin.my_error = util.lighten(colors.red1, 0.3) -- number between 0 and 1. 0 results in white, 1 results in red1
|
||||
<
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user