From c750ef81a5ff0c29d4ab5281b02dd179f25dd23c Mon Sep 17 00:00:00 2001 From: nullchilly Date: Thu, 14 Jul 2022 10:43:29 +0700 Subject: [PATCH] feat(compiler): Fix silly table --- lua/catppuccin/lib/compiler.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lua/catppuccin/lib/compiler.lua b/lua/catppuccin/lib/compiler.lua index 4f26b8c..73c9e65 100644 --- a/lua/catppuccin/lib/compiler.lua +++ b/lua/catppuccin/lib/compiler.lua @@ -13,7 +13,7 @@ local function inspect(t) return fmt([[{ %s }]], table.concat(list, ", ")) end -function util.compile() +function M.compile() local theme = require("catppuccin.lib.mapper").apply() local lines = { [[ @@ -100,7 +100,7 @@ vim.g.colors_name = "catppuccin"]], file:close() end -function util.clean() +function M.clean() local config = require("catppuccin.config").options local compiled_path = config.compile.path .. (vim.loop.os_uname().sysname == "Windows" and "\\" or "/") @@ -109,3 +109,5 @@ function util.clean() .. ".lua" os.remove(compiled_path) end + +return M