Skip to content

Commit

Permalink
fix(integrations): respect default options
Browse files Browse the repository at this point in the history
  • Loading branch information
nullchilly committed Jan 29, 2024
1 parent afab7ec commit c2e6f8e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lua/catppuccin/lib/mapper.lua
Expand Up @@ -38,7 +38,8 @@ function M.apply(flavour)
if O.integrations[integration].enabled == true then cot = true end
else
if O.integrations[integration] == true then
O.integrations[integration] = require("catppuccin").default_options[integration] or {}
local default = require("catppuccin").default_options.integrations[integration]
O.integrations[integration] = type(default) == "table" and default or {}
O.integrations[integration].enabled = true
cot = true
end
Expand Down

0 comments on commit c2e6f8e

Please sign in to comment.