blob: 3d1da4cc2c6d06538093f1d6519838b87dae8e65 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
local color = vim.g.alpha_color
if color == nil then
print("No color configure, set vim.g.alpha_color and ensure the file exists on the color folder")
return
end
local ok, colorClass = pcall(require, "alpha.colors."..color)
if not ok then
print("No setup class for color " .. color)
return
end
if type(colorClass.setup) ~= "function" then
print("method setup non existing")
return
end
colorClass.setup()
|