From b7f5faf9612a80c805ab398e29c7346c31f611ed Mon Sep 17 00:00:00 2001 From: rootiest Date: Tue, 6 Aug 2024 02:40:53 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix(astral):=20fix=20bug=20with?= =?UTF-8?q?=20astral=20in=20auto-darkmode?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Auto-darkmode needs to properly require astral plugin --- lua/plugins/themes.lua | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lua/plugins/themes.lua b/lua/plugins/themes.lua index 68e0648..3da7d41 100644 --- a/lua/plugins/themes.lua +++ b/lua/plugins/themes.lua @@ -1,7 +1,6 @@ -- ----------------------------------------------------------------------------- -- --------------------------------- THEMES ------------------------------------ -- ----------------------------------------------------------------------------- -local astral = require("astral") return { -- ----------------------- Themes -------------------------- @@ -90,13 +89,13 @@ return { set_dark_mode = function() vim.o.background = "dark" vim.cmd.colorscheme( - astral.colortheme or "catppuccin-frappe" or "tokyonight" + require("astral").colortheme or "catppuccin-frappe" or "tokyonight" ) end, set_light_mode = function() vim.o.background = "light" vim.cmd.colorscheme( - astral.colortheme or "catppuccin-latte" or "tokyonight-day" + require("astral").colortheme or "catppuccin-latte" or "tokyonight-day" ) end, },