From 61c854604da03dd74d21ec06eff565d3940398b7 Mon Sep 17 00:00:00 2001 From: Andrew Tomaka Date: Tue, 31 Dec 2024 12:27:12 -0500 Subject: [PATCH] Back to suggested via README --- nvim/.config/nvim/lua/plugins/auto-dark-mode.lua | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/nvim/.config/nvim/lua/plugins/auto-dark-mode.lua b/nvim/.config/nvim/lua/plugins/auto-dark-mode.lua index 4030de8..0dfa6d8 100644 --- a/nvim/.config/nvim/lua/plugins/auto-dark-mode.lua +++ b/nvim/.config/nvim/lua/plugins/auto-dark-mode.lua @@ -3,14 +3,12 @@ return { opts = { update_interval = 3000, set_dark_mode = function() - -- vim.api.nvim_set_option_value("background", "dark", {}) - vim.opt.background = "dark" - -- vim.cmd("colorscheme gruvbox") + vim.api.nvim_set_option_value("background", "dark", {}) + vim.cmd("colorscheme gruvbox") end, set_light_mode = function() vim.api.nvim_set_option_value("background", "light", {}) - vim.opt.background = "light" - -- vim.cmd("colorscheme gruvbox") + vim.cmd("colorscheme gruvbox") end, }, }