From 7c3155fa1b88146e8552ce2d1e89777469723ede Mon Sep 17 00:00:00 2001 From: Pocco81 Date: Mon, 1 Nov 2021 12:57:09 -0500 Subject: [PATCH] dev: renamed core to katppuccino --- lua/katppuccino/api/colors.lua | 2 +- lua/katppuccino/core/integrations/lightspeed.lua | 10 +++++----- lua/katppuccino/core/integrations/nvimtree.lua | 2 +- lua/katppuccino/core/mapper.lua | 12 ++++++------ 4 files changed, 13 insertions(+), 13 deletions(-) diff --git a/lua/katppuccino/api/colors.lua b/lua/katppuccino/api/colors.lua index af93fc4..4a26891 100644 --- a/lua/katppuccino/api/colors.lua +++ b/lua/katppuccino/api/colors.lua @@ -1,7 +1,7 @@ local M = {} function M.get_colors(cs) - return require("catppuccino.core.cs").get_color_scheme(cs) + return require("katppuccino.core.cs").get_color_scheme(cs) end return M diff --git a/lua/katppuccino/core/integrations/lightspeed.lua b/lua/katppuccino/core/integrations/lightspeed.lua index abb8f9e..765851f 100644 --- a/lua/katppuccino/core/integrations/lightspeed.lua +++ b/lua/katppuccino/core/integrations/lightspeed.lua @@ -13,14 +13,14 @@ end function M.get(cp) if not get_prepakatppuccino5() then - local catppuccino = require("catppuccino") - if catppuccino.after_loading ~= nil then - catppuccino.after_loading = function () - catppuccino.after_loading() + local katppuccino = require("katppuccino") + if katppuccino.after_loading ~= nil then + katppuccino.after_loading = function () + katppuccino.after_loading() require'lightspeed'.init_highlight() end else - catppuccino.after_loading = function () + katppuccino.after_loading = function () require'lightspeed'.init_highlight() end end diff --git a/lua/katppuccino/core/integrations/nvimtree.lua b/lua/katppuccino/core/integrations/nvimtree.lua index 2653c0b..234ee6c 100644 --- a/lua/katppuccino/core/integrations/nvimtree.lua +++ b/lua/katppuccino/core/integrations/nvimtree.lua @@ -1,7 +1,7 @@ local M = {} function M.get(cp) - local config = require("catppuccino.config").options + local config = require("katppuccino.config").options local root_dir_color = cp.katppuccino4 diff --git a/lua/katppuccino/core/mapper.lua b/lua/katppuccino/core/mapper.lua index 84f6d0e..35e4780 100644 --- a/lua/katppuccino/core/mapper.lua +++ b/lua/katppuccino/core/mapper.lua @@ -1,5 +1,5 @@ -local colors_util = require("catppuccino.utils.colors") -local color_palette = require("catppuccino.core.color_palette") +local colors_util = require("katppuccino.utils.colors") +local color_palette = require("katppuccino.core.color_palette") local M = {} @@ -190,7 +190,7 @@ local function get_integrations() final_integrations = vim.tbl_deep_extend( "force", final_integrations, - require("catppuccino.core.integrations." .. integration).get(color_palette) + require("katppuccino.core.integrations." .. integration).get(color_palette) ) end end @@ -198,7 +198,7 @@ local function get_integrations() final_integrations = vim.tbl_deep_extend( "force", final_integrations, - require("catppuccino.core.remaps").get_hig_remaps() or {} + require("katppuccino.core.remaps").get_hig_remaps() or {} ) return final_integrations end @@ -208,7 +208,7 @@ local function get_terminal() local cp = color_palette g.terminal_color_0 = cp.katppuccino0 - g.terminal_color_1 = cp.catppuccino1 + g.terminal_color_1 = cp.katppuccino1 g.terminal_color_2 = cp.katppuccino2 g.terminal_color_3 = cp.katppuccino3 g.terminal_color_4 = cp.katppuccino4 @@ -221,7 +221,7 @@ local function get_terminal() end function M.apply() - _G.cnf = require("catppuccino.config").options + _G.cnf = require("katppuccino.config").options local theme = {} theme.properties = get_properties() -- nvim settings