mirror of
https://github.com/pojokcodeid/nvim-lazy.git
synced 2025-06-24 09:48:51 +02:00
support config color scheme
This commit is contained in:
parent
ee7e49f922
commit
b6f0601d3d
5 changed files with 181 additions and 42 deletions
|
@ -7,6 +7,11 @@ local lunar = false
|
|||
local material = false
|
||||
local onedark = false
|
||||
local catppuccin = false
|
||||
local nightfox = false
|
||||
|
||||
local sonokai_style = "default"
|
||||
local material_style = "oceanic"
|
||||
local onedark_style = "dark"
|
||||
|
||||
_G.switch = function(param, case_table)
|
||||
local case = case_table[param]
|
||||
|
@ -45,15 +50,91 @@ if data_exists then
|
|||
["sonokai"] = function()
|
||||
gruvbox = false
|
||||
sonokai = true
|
||||
sonokai_style = "default"
|
||||
end,
|
||||
["sonokai_atlantis"] = function()
|
||||
gruvbox = false
|
||||
sonokai = true
|
||||
sonokai_style = "atlantis"
|
||||
end,
|
||||
["sonokai_andromeda"] = function()
|
||||
gruvbox = false
|
||||
sonokai = true
|
||||
sonokai_style = "andromeda"
|
||||
end,
|
||||
["sonokai_shusia"] = function()
|
||||
gruvbox = false
|
||||
sonokai = true
|
||||
sonokai_style = "shusia"
|
||||
end,
|
||||
["sonokai_maia"] = function()
|
||||
gruvbox = false
|
||||
sonokai = true
|
||||
sonokai_style = "maia"
|
||||
end,
|
||||
["sonokai_espresso"] = function()
|
||||
gruvbox = false
|
||||
sonokai = true
|
||||
sonokai_style = "espresso"
|
||||
end,
|
||||
["material"] = function()
|
||||
gruvbox = false
|
||||
material = true
|
||||
end,
|
||||
["material_deepocean"] = function()
|
||||
gruvbox = false
|
||||
material = true
|
||||
material_style = "deep ocean"
|
||||
end,
|
||||
["material_palenight"] = function()
|
||||
gruvbox = false
|
||||
material = true
|
||||
material_style = "palenight"
|
||||
end,
|
||||
["material_lighter"] = function()
|
||||
gruvbox = false
|
||||
material = true
|
||||
material_style = "lighter"
|
||||
end,
|
||||
["material_darker"] = function()
|
||||
gruvbox = false
|
||||
material = true
|
||||
material_style = "darker"
|
||||
end,
|
||||
["onedark"] = function()
|
||||
gruvbox = false
|
||||
onedark = true
|
||||
end,
|
||||
["onedark_darker"] = function()
|
||||
gruvbox = false
|
||||
onedark = true
|
||||
onedark_style = "darker"
|
||||
end,
|
||||
["onedark_cool"] = function()
|
||||
gruvbox = false
|
||||
onedark = true
|
||||
onedark_style = "cool"
|
||||
end,
|
||||
["onedark_deep"] = function()
|
||||
gruvbox = false
|
||||
onedark = true
|
||||
onedark_style = "deep"
|
||||
end,
|
||||
["onedark_warm"] = function()
|
||||
gruvbox = false
|
||||
onedark = true
|
||||
onedark_style = "warm"
|
||||
end,
|
||||
["onedark_warmer"] = function()
|
||||
gruvbox = false
|
||||
onedark = true
|
||||
onedark_style = "warmer"
|
||||
end,
|
||||
["onedark_light"] = function()
|
||||
gruvbox = false
|
||||
onedark = true
|
||||
onedark_style = "light"
|
||||
end,
|
||||
["lunar"] = function()
|
||||
gruvbox = false
|
||||
lunar = true
|
||||
|
@ -66,10 +147,54 @@ if data_exists then
|
|||
gruvbox = false
|
||||
catppuccin = true
|
||||
end,
|
||||
["catppuccin-latte"] = function()
|
||||
gruvbox = false
|
||||
catppuccin = true
|
||||
end,
|
||||
["catppuccin-frappe"] = function()
|
||||
gruvbox = false
|
||||
catppuccin = true
|
||||
end,
|
||||
["catppuccin-macchiato"] = function()
|
||||
gruvbox = false
|
||||
catppuccin = true
|
||||
end,
|
||||
["catppuccin-mocha"] = function()
|
||||
gruvbox = false
|
||||
catppuccin = true
|
||||
end,
|
||||
["dracula"] = function()
|
||||
gruvbox = false
|
||||
dracula = true
|
||||
end,
|
||||
["nightfox"] = function()
|
||||
gruvbox = false
|
||||
nightfox = true
|
||||
end,
|
||||
["dayfox"] = function()
|
||||
gruvbox = false
|
||||
nightfox = true
|
||||
end,
|
||||
["dawnfox"] = function()
|
||||
gruvbox = false
|
||||
nightfox = true
|
||||
end,
|
||||
["duskfox"] = function()
|
||||
gruvbox = false
|
||||
nightfox = true
|
||||
end,
|
||||
["nordfox"] = function()
|
||||
gruvbox = false
|
||||
nightfox = true
|
||||
end,
|
||||
["terafox"] = function()
|
||||
gruvbox = false
|
||||
nightfox = true
|
||||
end,
|
||||
["carbonfox"] = function()
|
||||
gruvbox = false
|
||||
nightfox = true
|
||||
end,
|
||||
["gruvbox-baby"] = function()
|
||||
gruvbox = true
|
||||
end,
|
||||
|
@ -119,13 +244,19 @@ return {
|
|||
require("nord").set()
|
||||
end,
|
||||
},
|
||||
{ "sainnhe/sonokai", enabled = sonokai },
|
||||
{
|
||||
"sainnhe/sonokai",
|
||||
enabled = sonokai,
|
||||
config = function()
|
||||
vim.g.sonokai_style = sonokai_style
|
||||
end,
|
||||
},
|
||||
{ "lunarvim/lunar.nvim", enabled = lunar },
|
||||
{
|
||||
"marko-cerovac/material.nvim",
|
||||
enabled = material,
|
||||
config = function()
|
||||
vim.g.material_style = "palenight"
|
||||
vim.g.material_style = material_style
|
||||
require("material").setup({
|
||||
lualine_style = "stealth",
|
||||
disable = {
|
||||
|
@ -141,7 +272,7 @@ return {
|
|||
config = function()
|
||||
-- Lua
|
||||
require("onedark").setup({
|
||||
style = "darker",
|
||||
style = onedark_style,
|
||||
transparent = transparent,
|
||||
lualine = {
|
||||
transparent = transparent,
|
||||
|
@ -158,4 +289,15 @@ return {
|
|||
require("user.catppuccin")
|
||||
end,
|
||||
},
|
||||
{
|
||||
"EdenEast/nightfox.nvim",
|
||||
enabled = nightfox,
|
||||
config = function()
|
||||
require("nightfox").setup({
|
||||
options = {
|
||||
transparent = transparent,
|
||||
},
|
||||
})
|
||||
end,
|
||||
},
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue