Skip to content

Commit

Permalink
Update lua/precognition/init.lua
Browse files Browse the repository at this point in the history
Co-authored-by: Tristan Knight <[email protected]>
  • Loading branch information
tmfink and tris203 authored Jun 16, 2024
1 parent 5414273 commit 2889d02
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lua/precognition/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -417,10 +417,8 @@ end

---@param opts Precognition.PartialConfig
function M.setup(opts)
if not opts then
opts = {}
end
config = vim.tbl_deep_extend("force", default, opts or {})
opts = opts or {}
config = vim.tbl_deep_extend("force", default, opts)
if opts.highlightColor then
config.highlightColor = opts.highlightColor
end
Expand Down

0 comments on commit 2889d02

Please sign in to comment.