nvim-config/lua/plugins/themes.lua

37 lines
917 B
Lua
Raw Normal View History

2024-09-12 21:43:42 +02:00
return {
{
"bluz71/vim-moonfly-colors",
2024-09-12 21:43:42 +02:00
lazy = false, -- make sure we load this during startup if it is your main colorscheme
priority = 1000, -- make sure to load this before all the other start plugins
},
{
"miikanissi/modus-themes.nvim",
config = function()
require("modus-themes").setup({
variant = "tinted",
transparent = true,
})
end,
},
{
"f-person/auto-dark-mode.nvim",
opts = {
update_interval = 1000,
set_dark_mode = function()
vim.api.nvim_set_option_value("background", "dark", {})
vim.cmd("colorscheme moonfly")
end,
set_light_mode = function()
2024-09-26 10:42:02 +02:00
local uname = vim.loop.os_uname()
if uname.sysname == 'Linux' then
vim.api.nvim_set_option_value("background", "dark", {})
vim.cmd("colorscheme moonfly")
else
vim.api.nvim_set_option_value("background", "light", {})
vim.cmd("colorscheme modus")
end
end,
},
},
2024-09-12 21:43:42 +02:00
}