Skip to content

Commit

Permalink
fix: accept preset as a table (#582)
Browse files Browse the repository at this point in the history
  • Loading branch information
gmerzu committed Aug 30, 2023
1 parent c8a9b71 commit 53d613c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/noice/config/preset.lua
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function M.load(name, preset)
return Util.panic("Unknown preset " .. name)
end

preset = vim.tbl_deep_extend("force", {}, M.presets[name], type(preset) == "table" and preset or {})
preset = vim.tbl_deep_extend("force", {}, M.presets[name] or {}, type(preset) == "table" and preset or {})
---@cast preset NoicePreset

if preset.enabled == false then
Expand Down

0 comments on commit 53d613c

Please sign in to comment.