This commit is contained in:
Michael Chalupiak
2024-11-06 20:59:37 -05:00
parent 450b695fa8
commit e64b64d3f6
2 changed files with 12 additions and 9 deletions

View File

@@ -12,8 +12,11 @@ function colors(color, theme)
if color == 'gruvbox-dark-hard' then
color = 'gruvbox-material'
vim.g.gruvbox_material_background = 'hard'
elseif color == 'gruvbox-dark-soft' then
color = 'gruvbox-material'
vim.g.gruvbox_material_background = 'soft'
end
if theme then
if theme then
vim.cmd.colorscheme(alt_color)
elseif not pcall(vim.cmd.colorscheme, color) then
vim.cmd.colorscheme(alt_color)