This commit is contained in:
Michael Chalupiak
2024-12-15 13:17:00 -05:00
parent 86d8fa773c
commit 34eb7ee038
6 changed files with 23 additions and 8 deletions

View File

@@ -1,6 +1,6 @@
function colors(color, theme)
color = os.getenv("BASE16_THEME")
alt_color = 'rose-pine' or color
color = os.getenv("BASE16_THEME")
alt_color = 'everforest' or color
-- Available values: `'hard'`, `'medium'`, `'soft'`
vim.g.gruvbox_material_background = 'medium'
-- Available values: `'material'`, `'mix'`, `'original'`
@@ -15,10 +15,13 @@ function colors(color, theme)
elseif color == 'gruvbox-dark-soft' then
color = 'gruvbox-material'
vim.g.gruvbox_material_background = 'soft'
elseif color == 'everforest-dark-hard' then
vim.g.everforest_background = 'hard'
color = 'everforest'
end
if theme then
if theme then
vim.cmd.colorscheme(alt_color)
elseif not pcall(vim.cmd.colorscheme, color) then
elseif not pcall(vim.cmd.colorscheme, color) or color == nil then
vim.cmd.colorscheme(alt_color)
end
end