Skip to content

Commit

Permalink
fix: typo introduced in #28 (#31)
Browse files Browse the repository at this point in the history
* fix: typo introduced in #28

* style: format with stylua
  • Loading branch information
nekowinston authored Oct 9, 2024
1 parent fa92588 commit 2190e4c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lua/auto-dark-mode/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ local query_command
local system

---@type "light" | "dark"
local fallback;
local fallback

-- Parses the query response for each system
---@param res string
Expand All @@ -32,7 +32,7 @@ local function parse_query_response(res)
-- 2: light
if string.match(res, "uint32 1") ~= nil then
return true
elseif string.match(res, "unit32 2") ~= nil then
elseif string.match(res, "uint32 2") ~= nil then
return false
else
return fallback == "dark"
Expand Down
2 changes: 1 addition & 1 deletion lua/auto-dark-mode/types.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
---@field set_light_mode nil | fun(): nil
-- Every `update_interval` milliseconds a theme check will be performed.
---@field update_interval number?
-- Optional. Fallback theme to use if the system theme can't be detected.
-- Optional. Fallback theme to use if the system theme can't be detected.
-- Useful for linux and environments without a desktop manager.
---@field fallback "light" | "dark" | nil

0 comments on commit 2190e4c

Please sign in to comment.