|
|
@ -27,7 +27,7 @@ function M.load()
|
|
|
|
catppuccin.before_loading()
|
|
|
|
catppuccin.before_loading()
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
local loaded = nil
|
|
|
|
local compiled = nil
|
|
|
|
local config = require("catppuccin.config").options
|
|
|
|
local config = require("catppuccin.config").options
|
|
|
|
|
|
|
|
|
|
|
|
if config.compile.enabled == true then
|
|
|
|
if config.compile.enabled == true then
|
|
|
@ -40,19 +40,19 @@ function M.load()
|
|
|
|
if f ~= nil then
|
|
|
|
if f ~= nil then
|
|
|
|
io.close(f)
|
|
|
|
io.close(f)
|
|
|
|
vim.cmd("luafile " .. compiled_path)
|
|
|
|
vim.cmd("luafile " .. compiled_path)
|
|
|
|
loaded = true
|
|
|
|
compiled = true
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
if not loaded then -- colorscheme gets evaluated from mapper.lua
|
|
|
|
if not compiled then -- colorscheme gets evaluated from mapper.lua
|
|
|
|
require("catppuccin.lib.highlighter").load(require("catppuccin.lib.mapper").apply())
|
|
|
|
require("catppuccin.lib.highlighter").load(require("catppuccin.lib.mapper").apply())
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
if catppuccin.after_loading ~= nil then
|
|
|
|
if catppuccin.after_loading ~= nil then
|
|
|
|
catppuccin.after_loading()
|
|
|
|
catppuccin.after_loading()
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
vim.api.nvim_exec_autocmds("User", { pattern = "CatppuccinLoaded" })
|
|
|
|
vim.api.nvim_exec_autocmds("User", { pattern = "Catppuccincompiled" })
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
function M.setup(custom_opts)
|
|
|
|
function M.setup(custom_opts)
|
|
|
|