🐛 fix(astral): fix bug with astral in auto-darkmode
Auto-darkmode needs to properly require astral plugin
This commit is contained in:
@@ -1,7 +1,6 @@
|
|||||||
-- -----------------------------------------------------------------------------
|
-- -----------------------------------------------------------------------------
|
||||||
-- --------------------------------- THEMES ------------------------------------
|
-- --------------------------------- THEMES ------------------------------------
|
||||||
-- -----------------------------------------------------------------------------
|
-- -----------------------------------------------------------------------------
|
||||||
local astral = require("astral")
|
|
||||||
|
|
||||||
return {
|
return {
|
||||||
-- ----------------------- Themes --------------------------
|
-- ----------------------- Themes --------------------------
|
||||||
@@ -90,13 +89,13 @@ return {
|
|||||||
set_dark_mode = function()
|
set_dark_mode = function()
|
||||||
vim.o.background = "dark"
|
vim.o.background = "dark"
|
||||||
vim.cmd.colorscheme(
|
vim.cmd.colorscheme(
|
||||||
astral.colortheme or "catppuccin-frappe" or "tokyonight"
|
require("astral").colortheme or "catppuccin-frappe" or "tokyonight"
|
||||||
)
|
)
|
||||||
end,
|
end,
|
||||||
set_light_mode = function()
|
set_light_mode = function()
|
||||||
vim.o.background = "light"
|
vim.o.background = "light"
|
||||||
vim.cmd.colorscheme(
|
vim.cmd.colorscheme(
|
||||||
astral.colortheme or "catppuccin-latte" or "tokyonight-day"
|
require("astral").colortheme or "catppuccin-latte" or "tokyonight-day"
|
||||||
)
|
)
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user