2024-06-14 08:21:36 +07:00
|
|
|
local colorscheme = pcode.colorscheme or "gruvbox-baby"
|
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
|
|
|
|
2024-06-12 18:38:25 +07:00
|
|
|
local ok, _ = pcall(vim.cmd.colorscheme, colorscheme)
|
|
|
|
if not ok then
|
2024-06-14 08:40:35 +07:00
|
|
|
require("notify")("Colorscheme '" .. colorscheme .. "' not found!", "error")
|
2024-05-26 20:27:44 +07:00
|
|
|
end
|