From 2889d02680e8c538f4042f2095476ce6787c3cec Mon Sep 17 00:00:00 2001 From: Travis Finkenauer Date: Sat, 15 Jun 2024 22:35:12 -0700 Subject: [PATCH] Update lua/precognition/init.lua Co-authored-by: Tristan Knight --- lua/precognition/init.lua | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lua/precognition/init.lua b/lua/precognition/init.lua index 6927e6f..4acdaae 100644 --- a/lua/precognition/init.lua +++ b/lua/precognition/init.lua @@ -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