93 lines
2.3 KiB
Lua
93 lines
2.3 KiB
Lua
local utils = require("utils")
|
|
|
|
local M = {}
|
|
|
|
M.colorscheme_conf = {
|
|
onedark = function()
|
|
require("onedark").setup {
|
|
style = "darker",
|
|
}
|
|
require("onedark").load()
|
|
end,
|
|
edge = function()
|
|
vim.g.edge_style = "default"
|
|
vim.g.edge_enable_italic = 1
|
|
vim.g.edge_better_performance = 1
|
|
vim.cmd([[colorscheme edge]])
|
|
end,
|
|
sonokai = function()
|
|
vim.g.sonokai_enable_italic = 1
|
|
vim.g.sonokai_better_performance = 1
|
|
vim.cmd([[colorscheme sonokai]])
|
|
end,
|
|
gruvbox_material = function()
|
|
-- foreground option can be material, mix, or original
|
|
vim.g.gruvbox_material_foreground = "original"
|
|
-- background option can be hard, medium, soft
|
|
vim.g.gruvbox_material_background = "hard"
|
|
vim.g.gruvbox_material_enable_italic = 1
|
|
vim.g.gruvbox_material_better_performance = 1
|
|
vim.cmd([[colorscheme gruvbox-material]])
|
|
end,
|
|
everforest = function()
|
|
vim.g.everforest_background = "hard"
|
|
vim.g.everforest_enable_italic = 1
|
|
vim.g.everforest_better_performance = 1
|
|
vim.cmd([[colorscheme everforest]])
|
|
end,
|
|
nightfox = function()
|
|
vim.cmd([[colorscheme carboxfox]])
|
|
end,
|
|
onedarkpro = function()
|
|
vim.cmd("colorscheme onedark_dark")
|
|
end,
|
|
material = function()
|
|
vim.g.material_style = "darker"
|
|
vim.cmd("colorscheme material")
|
|
end,
|
|
arctic = function()
|
|
vim.cmd("colorscheme arctic")
|
|
end,
|
|
kanagawa = function()
|
|
vim.cmd("colorscheme kanagawa-dragon")
|
|
end,
|
|
modus = function()
|
|
vim.cmd([[colorscheme modus]])
|
|
end,
|
|
jellybeans = function()
|
|
vim.cmd([[colorscheme jellybeans]])
|
|
end,
|
|
github = function()
|
|
vim.cmd([[colorscheme github_dark_default]])
|
|
end,
|
|
e_ink = function()
|
|
require("e-ink").setup()
|
|
vim.cmd.colorscheme("e-ink")
|
|
end,
|
|
ashen = function()
|
|
vim.cmd([[colorscheme ashen]])
|
|
end,
|
|
melange = function()
|
|
vim.cmd([[colorscheme melange]])
|
|
end,
|
|
makurai = function()
|
|
vim.cmd.colorscheme("makurai_warrior")
|
|
end,
|
|
vague = function()
|
|
vim.cmd([[colorscheme vague]])
|
|
end,
|
|
kanso = function()
|
|
vim.cmd([[colorscheme kanso]])
|
|
end,
|
|
citruszest = function()
|
|
vim.cmd([[colorscheme citruszest]])
|
|
end,
|
|
}
|
|
|
|
M.rand_colorscheme = function()
|
|
local colorscheme = utils.rand_element(vim.tbl_keys(M.colorscheme_conf))
|
|
M.colorscheme_conf[colorscheme]()
|
|
end
|
|
|
|
return M
|