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 {
|
return {
|
||||||
"f-person/auto-dark-mode.nvim",
|
"f-person/auto-dark-mode.nvim",
|
||||||
opts = {
|
opts = {
|
||||||
|
|
@ -7,15 +7,16 @@ return {
|
||||||
update_interval = 4000,
|
update_interval = 4000,
|
||||||
set_dark_mode = function()
|
set_dark_mode = function()
|
||||||
vim.api.nvim_set_option_value("background", "dark", {})
|
vim.api.nvim_set_option_value("background", "dark", {})
|
||||||
vim.cmd("colorscheme tokyonight-storm")
|
vim.cmd("colorscheme rose-pine-moon")
|
||||||
end,
|
end,
|
||||||
set_light_mode = function()
|
set_light_mode = function()
|
||||||
vim.api.nvim_set_option_value("background", "light", {})
|
vim.api.nvim_set_option_value("background", "light", {})
|
||||||
vim.cmd("colorscheme rose-pine-dawn")
|
vim.cmd("colorscheme rose-pine-dawn")
|
||||||
end,
|
end,
|
||||||
|
fallback = "light",
|
||||||
},
|
},
|
||||||
config = function()
|
-- config = function()
|
||||||
local darkmode = require("auto-dark-mode")
|
-- local darkmode = require("auto-dark-mode")
|
||||||
darkmode.setup({})
|
-- darkmode.setup({})
|
||||||
end,
|
-- end,
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue