Skip to content

Commit 83e26c7

Browse files
committed
docs: reword fallback option docs & validate sentence
1 parent 3a095a2 commit 83e26c7

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,9 @@ milliseconds. The value needs to be higher than the amount of milliseconds it
111111
takes to query your system for the dark mode state. Otherwise, you risk
112112
freezing neovim on shutdown.
113113

114-
`fallback` specifies the theme to use when the auto-detection fails. This can
115-
be particularly useful to specify a default version when remotely connecting
116-
via SSH, or when using neovim on a tty.
114+
`fallback` specifies the appearance (`"dark" | "light"`) to use when the
115+
auto-detection fails. This can be particularly useful to specify a default
116+
version when remotely connecting via SSH, or when using neovim on a tty.
117117

118118
## 🚀 Usage
119119

lua/auto-dark-mode/init.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ local function validate_options(options)
2525
function(opt)
2626
return vim.tbl_contains({ "dark", "light" }, opt)
2727
end,
28-
"`fallback` must be either 'light' or 'dark'",
28+
"`fallback` to be either 'light' or 'dark'",
2929
},
3030
set_dark_mode = { options.set_dark_mode, "function" },
3131
set_light_mode = { options.set_light_mode, "function" },

0 commit comments

Comments
 (0)