feat(compiler): Fix silly table

dev
nullchilly 2 years ago
parent 393cd838ea
commit c750ef81a5

@ -13,7 +13,7 @@ local function inspect(t)
return fmt([[{ %s }]], table.concat(list, ", ")) return fmt([[{ %s }]], table.concat(list, ", "))
end end
function util.compile() function M.compile()
local theme = require("catppuccin.lib.mapper").apply() local theme = require("catppuccin.lib.mapper").apply()
local lines = { local lines = {
[[ [[
@ -100,7 +100,7 @@ vim.g.colors_name = "catppuccin"]],
file:close() file:close()
end end
function util.clean() function M.clean()
local config = require("catppuccin.config").options local config = require("catppuccin.config").options
local compiled_path = config.compile.path local compiled_path = config.compile.path
.. (vim.loop.os_uname().sysname == "Windows" and "\\" or "/") .. (vim.loop.os_uname().sysname == "Windows" and "\\" or "/")
@ -109,3 +109,5 @@ function util.clean()
.. ".lua" .. ".lua"
os.remove(compiled_path) os.remove(compiled_path)
end end
return M

Loading…
Cancel
Save