Automatically switch theme in vim - test.

This commit is contained in:
Bartek Stalewski 2024-11-03 21:49:42 +01:00
parent fb7802b115
commit 7faea29b3d
Signed by: ftpd
SSH Key Fingerprint: SHA256:vGQiaNJcfUMLt3wF58+Zx15C6SpRDA9spUeggjVY8Yo
2 changed files with 17 additions and 2 deletions

View File

@ -13,7 +13,7 @@ M.base46 = {
SpellBad = { bg = "#770000", fg = "#ffffff" }, SpellBad = { bg = "#770000", fg = "#ffffff" },
Visual = { bg = "#0094d8", fg = "#ffffff" }, Visual = { bg = "#0094d8", fg = "#ffffff" },
}, },
theme = "monekai", theme = "one_light",
transparency = false transparency = false
} }

View File

@ -14,7 +14,7 @@ return {
require("base46").load_all_highlights() require("base46").load_all_highlights()
end, end,
}, },
"nvchad/volt", -- optional, needed for theme switcher "nvchad/volt",
}, },
{ {
"stevearc/conform.nvim", "stevearc/conform.nvim",
@ -43,6 +43,21 @@ return {
require "configs.lspconfig" require "configs.lspconfig"
end, end,
}, },
{
"f-person/auto-dark-mode.nvim",
lazy = false,
config = {
update_interval = 1000,
set_dark_mode = function()
require('nvconfig').base46.theme = "monekai"
require('base46').load_all_highlights()
end,
set_light_mode = function()
require('nvconfig').base46.theme = "one_light"
require('base46').load_all_highlights()
end,
},
},
} }
-- These are some examples, uncomment them if you want to see them work! -- These are some examples, uncomment them if you want to see them work!