fix(auto-dark-mode): set fallback to light and make plugin work again by removing setup()
This commit is contained in:
parent
138471d0ae
commit
49629d6770
1 changed files with 7 additions and 6 deletions
|
|
@ -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,
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue