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

38 lines
669 B
Lua

local M = {}
local utils = require("catppuccino.utils.util")
local function load()
3 years ago
local catppuccino = require("catppuccino")
if catppuccino.before_loading ~= nil then
catppuccino.before_loading()
end
3 years ago
-- colorscheme gets evaluated from mapper.lua
local theme = require("catppuccino.core.mapper").apply()
utils.load(theme)
3 years ago
if catppuccino.after_loading ~= nil then
catppuccino.after_loading()
end
3 years ago
end
local function clear()
vim.cmd("hi clear")
end
function M.main(option)
option = option or "load"
if option == "load" then
load()
elseif option == "clear" then
clear()
else
print("Catppuccino: option was not recognized")
end
end
return M