1
Fork 0
satellite/home/features/neovim/config/lua/my/plugins/themes/rosepine.lua

32 lines
522 B
Lua
Raw Normal View History

2023-12-21 16:21:14 +01:00
local H = require("my.helpers.theme")
2023-01-22 01:22:38 +01:00
local M = {
"rose-pine/neovim",
name = "rose-pine",
lazy = false,
enabled = H.theme_contains("Rosé Pine"),
}
function M.config()
local variant = H.variant("Rosé Pine")
if variant == "dawn" then
vim.o.background = "light"
else
vim.o.background = "dark"
end
local dark_variants = {
[""] = "main",
moon = "moon",
}
require("rose-pine").setup({
dark_variant = dark_variants[variant],
})
vim.cmd("colorscheme rose-pine")
end
return M