pojokcodeid.nvim-lazy/lua/user/colorscheme.lua
2023-03-04 11:53:44 +07:00

19 lines
494 B
Lua

local colorscheme = "gruvbox-baby"
local data_exists, custom_ui = pcall(require, "custom.ui")
if data_exists then
if type(custom_ui) == "table" then
local color = custom_ui.colorscheme
if color ~= nil then
colorscheme = color
else
colorscheme = "gruvbox-baby"
end
end
end
local status_ok, _ = pcall(vim.cmd, "colorscheme " .. colorscheme)
if not status_ok then
local ok, _ = pcall(vim.cmd, "colorscheme " .. "gruvbox-baby")
if not ok then
return
end
end