|
|
@ -5,14 +5,14 @@ local utils = require("catppuccino.utils.util")
|
|
|
|
local function load(args)
|
|
|
|
local function load(args)
|
|
|
|
local catppuccino = require("catppuccino")
|
|
|
|
local catppuccino = require("catppuccino")
|
|
|
|
|
|
|
|
|
|
|
|
if (catppuccino.before_loading ~= nil) then
|
|
|
|
if catppuccino.before_loading ~= nil then
|
|
|
|
catppuccino.before_loading()
|
|
|
|
catppuccino.before_loading()
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
local theme = require("catppuccino.core.mapper").apply(args)
|
|
|
|
local theme = require("catppuccino.core.mapper").apply(args)
|
|
|
|
utils.load(theme)
|
|
|
|
utils.load(theme)
|
|
|
|
|
|
|
|
|
|
|
|
if (catppuccino.after_loading ~= nil) then
|
|
|
|
if catppuccino.after_loading ~= nil then
|
|
|
|
catppuccino.after_loading()
|
|
|
|
catppuccino.after_loading()
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
@ -20,7 +20,7 @@ end
|
|
|
|
function M.main(option, args)
|
|
|
|
function M.main(option, args)
|
|
|
|
option = option or "load"
|
|
|
|
option = option or "load"
|
|
|
|
|
|
|
|
|
|
|
|
if (option == "load") then
|
|
|
|
if option == "load" then
|
|
|
|
load(args)
|
|
|
|
load(args)
|
|
|
|
else
|
|
|
|
else
|
|
|
|
print("Catppuccino: command was not recognized")
|
|
|
|
print("Catppuccino: command was not recognized")
|
|
|
|