Skip to content

Commit

Permalink
fix(integration_default): override enabled key only if integration …
Browse files Browse the repository at this point in the history
…has one (#559)
  • Loading branch information
mrtnvgr authored Jul 29, 2023
1 parent 737f60a commit 9709f82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/catppuccin/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ function M.setup(user_conf)
if user_conf.integration_default ~= nil then
options = vim.deepcopy(M.default_options)
for key, _ in pairs(options.integrations) do
if type(options.integrations[key]) == "table" then
if options.integrations[key].enabled ~= nil then
options.integrations[key].enabled = user_conf.integration_default
else
options.integrations[key] = user_conf.integration_default
Expand Down

0 comments on commit 9709f82

Please sign in to comment.