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:
G Roques 2023-05-07 12:16:42 -05:00 committed by GitHub
parent f2ed28707a
commit f3723ba6e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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
<