You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
nvim/lua/catppuccino/main.lua

37 lines
668 B
Lua

local M = {}
local utils = require("catppuccino.utils.util")
3 years ago
local function load(args)
local catppuccino = require("catppuccino")
if (catppuccino.before_loading ~= nil) then
catppuccino.before_loading()
end
local good, theme = require("catppuccino.core.mapper").apply(args)
if not good then
print(theme) -- error message
return
end
utils.load(theme)
3 years ago
if (catppuccino.after_loading ~= nil) then
catppuccino.after_loading()
end
end
function M.main(option, args)
option = option or "load"
if (option == "load") then
3 years ago
load(args)
else
3 years ago
print("Catppuccino: command was not recognized")
end
end
return M