dev: started migrating from katppuccino -> catppuccin

dev-remaster
Pocco81 3 years ago
parent 9e3c40c686
commit a9a4c2b720

@ -0,0 +1,16 @@
local M = {}
function M.load()
require("catppucin.main").main("load")
end
function M.remap(hi_groups)
hi_groups = hi_groups or {}
require("catppucin.core.remaps").set_hig_remaps(hi_groups)
end
function M.setup(custom_opts)
require("catppucin.config").set_options(custom_opts)
end
return M

@ -0,0 +1,37 @@
local M = {}
local utils = require("catppucin.utils.util")
local function load()
local catppucin = require("catppucin")
if catppucin.before_loading ~= nil then
catppucin.before_loading()
end
-- colorscheme gets evaluated from mapper.lua
local theme = require("catppucin.core.mapper").apply()
utils.load(theme)
if catppucin.after_loading ~= nil then
catppucin.after_loading()
end
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("catppucin: option was not recognized")
end
end
return M

@ -1,16 +0,0 @@
local M = {}
function M.load()
require("katppuccino.main").main("load")
end
function M.remap(hi_groups)
hi_groups = hi_groups or {}
require("katppuccino.core.remaps").set_hig_remaps(hi_groups)
end
function M.setup(custom_opts)
require("katppuccino.config").set_options(custom_opts)
end
return M

@ -1,37 +0,0 @@
local M = {}
local utils = require("katppuccino.utils.util")
local function load()
local katppuccino = require("katppuccino")
if katppuccino.before_loading ~= nil then
katppuccino.before_loading()
end
-- colorscheme gets evaluated from mapper.lua
local theme = require("katppuccino.core.mapper").apply()
utils.load(theme)
if katppuccino.after_loading ~= nil then
katppuccino.after_loading()
end
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("katppuccino: option was not recognized")
end
end
return M
Loading…
Cancel
Save