neovide
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user