2024-05-21 19:49:53 +07:00
|
|
|
local colorscheme = vim.g.pcode_colorscheme or "gruvbox-baby"
|
|
|
|
local transparent_mode = vim.g.pcode_transparent_mode or 0
|
2024-05-21 14:20:50 +07:00
|
|
|
if transparent_mode ~= nil then
|
2024-05-24 23:43:38 +07:00
|
|
|
if transparent_mode == 1 then
|
|
|
|
vim.g.gruvbox_baby_transparent_mode = 1
|
|
|
|
vim.g.sonokai_transparent_background = 2
|
|
|
|
end
|
2023-03-04 11:53:44 +07:00
|
|
|
end
|
2023-03-05 10:49:03 +07:00
|
|
|
|
2024-05-24 23:43:38 +07:00
|
|
|
if substring(tostring(colorscheme), "sonokai") then
|
|
|
|
colorscheme = "sonokai"
|
|
|
|
elseif substring(tostring(colorscheme), "material") then
|
|
|
|
colorscheme = "material"
|
2023-03-05 10:49:03 +07:00
|
|
|
end
|
2024-05-21 14:20:50 +07:00
|
|
|
|
|
|
|
vim.cmd("colorscheme " .. colorscheme)
|