fix(auto-dark-mode): set fallback to light and make plugin work again by removing setup()

This commit is contained in:
Oliver Ladner 2024-10-21 07:38:48 +02:00
commit 49629d6770

View file

@ -1,4 +1,4 @@
-- Adds git related signs to the gutter, as well as utilities for managing changes
-- https://github.com/f-person/auto-dark-mode.nvim
return {
"f-person/auto-dark-mode.nvim",
opts = {
@ -7,15 +7,16 @@ return {
update_interval = 4000,
set_dark_mode = function()
vim.api.nvim_set_option_value("background", "dark", {})
vim.cmd("colorscheme tokyonight-storm")
vim.cmd("colorscheme rose-pine-moon")
end,
set_light_mode = function()
vim.api.nvim_set_option_value("background", "light", {})
vim.cmd("colorscheme rose-pine-dawn")
end,
fallback = "light",
},
config = function()
local darkmode = require("auto-dark-mode")
darkmode.setup({})
end,
-- config = function()
-- local darkmode = require("auto-dark-mode")
-- darkmode.setup({})
-- end,
}