From f3723ba6e8c43ead8109e97cfcc7cee37ef5e49a Mon Sep 17 00:00:00 2001 From: G Roques Date: Sun, 7 May 2023 12:16:42 -0500 Subject: [PATCH] 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 --- README.md | 2 +- doc/tokyonight.nvim.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 68ea4ef..d978247 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/doc/tokyonight.nvim.txt b/doc/tokyonight.nvim.txt index 7f54815..9fe8424 100644 --- a/doc/tokyonight.nvim.txt +++ b/doc/tokyonight.nvim.txt @@ -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 <