pojokcodeid.nvim-lazy/lua/user/colorscheme.lua

20 lines
494 B
Lua
Raw Normal View History

2023-02-12 07:52:40 +07:00
local colorscheme = "gruvbox-baby"
2023-03-04 11:53:44 +07:00
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
2023-01-15 00:17:41 +07:00
local status_ok, _ = pcall(vim.cmd, "colorscheme " .. colorscheme)
if not status_ok then
2023-03-04 11:53:44 +07:00
local ok, _ = pcall(vim.cmd, "colorscheme " .. "gruvbox-baby")
if not ok then
return
end
2023-01-15 00:17:41 +07:00
end