From 02dcc8f8db677fe02d2dd68da6155177283fe711 Mon Sep 17 00:00:00 2001 From: Travis Finkenauer Date: Sun, 16 Jun 2024 14:45:17 -0700 Subject: [PATCH] fix: support calling setup() w/o args (#71) Co-authored-by: Tristan Knight --- lua/precognition/init.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lua/precognition/init.lua b/lua/precognition/init.lua index c4f5559..1d00e27 100644 --- a/lua/precognition/init.lua +++ b/lua/precognition/init.lua @@ -419,7 +419,8 @@ end ---@param opts Precognition.PartialConfig function M.setup(opts) - 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