fix(compiler): Fill in user config

dev
nullchilly 2 years ago
parent 40801defb4
commit 6abbe9e731

@ -88,7 +88,7 @@ config.options = {
function config.set_options(opts)
opts = opts or {}
config.options = vim.tbl_deep_extend("force", config.options, opts)
config.options = vim.tbl_deep_extend("keep", opts, config.options)
end
return config

@ -47,7 +47,7 @@ function M.setup(custom_opts)
require("catppuccin.config").set_options(custom_opts)
-- Only set compile commands when enabled = true
if custom_opts.compile.enabled == true then
if require("catppuccin.config").options.compile.enabled == true then
command("CatppuccinCompile", function()
require("catppuccin.lib.compiler").compile()
end, {})

Loading…
Cancel
Save