From 24d5824420adb03cdb2b1e1f0227c26b79590adb Mon Sep 17 00:00:00 2001 From: Skladnayazebra Date: Sat, 28 Feb 2026 12:33:17 +0100 Subject: Configure auto-theme switch --- nvim/lua/config/lazy.lua | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'nvim/lua/config/lazy.lua') diff --git a/nvim/lua/config/lazy.lua b/nvim/lua/config/lazy.lua index 807d35c..710a22c 100644 --- a/nvim/lua/config/lazy.lua +++ b/nvim/lua/config/lazy.lua @@ -83,6 +83,19 @@ require("lazy").setup({ }, } }, + { + "f-person/auto-dark-mode.nvim", + opts = { + set_dark_mode = function() + vim.api.nvim_set_option_value("background", "dark", {}) + end, + set_light_mode = function() + vim.api.nvim_set_option_value("background", "light", {}) + end, + update_interval = 3000, + fallback = "dark", + } + } }, install = { colorscheme = { "gruvbox" } }, checker = { enabled = true }, -- cgit v1.3.1