Skip to content

Commit

Permalink
fix(vim): resolve deprecation of nested [[
Browse files Browse the repository at this point in the history
  • Loading branch information
nullchilly committed Sep 30, 2023
1 parent 1826765 commit 7a4bcda
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lua/catppuccin/lib/vim/compiler.lua
Expand Up @@ -9,15 +9,15 @@ function M.compile(flavour)
local theme = require("catppuccin.lib.mapper").apply(flavour)
local lines = {
string.format(
[[
[=[
return string.dump(function()
vim.command[[
if exists("colors_name")
hi clear
endif
set termguicolors
set background=%s
let g:colors_name = "catppuccin-%s"]],
let g:colors_name = "catppuccin-%s"]=],
(flavour == "latte" and "light" or "dark"),
flavour
),
Expand Down Expand Up @@ -64,7 +64,7 @@ let g:colors_name = "catppuccin-%s"]],
end
table.insert(lines, "]]end, true)")
if vim.fn.isdirectory(O.compile_path) == 0 then vim.fn.mkdir(O.compile_path, "p") end
local ls = load or loadstring
local ls = loadstring or load

if vim.g.catppuccin_debug then -- Debugging purpose
local deb = io.open(O.compile_path .. path_sep .. flavour .. ".lua", "wb")
Expand Down

0 comments on commit 7a4bcda

Please sign in to comment.