Skip to content

Commit

Permalink
fix erros when invalid config is given
Browse files Browse the repository at this point in the history
  • Loading branch information
frostplexx committed Jun 11, 2024
1 parent 9d222cd commit 19bc564
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lua/mason-bridge/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ M.setup = function(opts)
-- Cache the loaded associations
cached_associations = associations
-- Apply overrides

opts = vim.tbl_deep_extend('force', DEFAULT_SETTINGS, opts)
cached_associations.formatters =
vim.tbl_deep_extend('force', cached_associations.formatters,
(opts.overrides == nil and {} or opts.overrides.formatters))
vim.tbl_deep_extend('force', cached_associations.formatters or {},
opts.overrides.formatters == nil and {} or opts.overrides.formatters)
cached_associations.linters =
vim.tbl_deep_extend('force', cached_associations.linters,
(opts.overrides == nil and {} or opts.overrides.linters))
vim.tbl_deep_extend('force', cached_associations.linters or {},
opts.overrides == nil and {} or opts.overrides.linters)
end)
end

Expand Down

0 comments on commit 19bc564

Please sign in to comment.