diff --git a/lua/hop/init.lua b/lua/hop/init.lua index 93c8bc05..bec086dd 100644 --- a/lua/hop/init.lua +++ b/lua/hop/init.lua @@ -8,7 +8,7 @@ M.opts = defaults -- Setup user settings. function M.setup(opts) -- Look up keys in user-defined table with fallback to defaults. - M.opts = setmetatable(opts, {__index = defaults}) + M.opts = setmetatable(opts or {}, {__index = defaults}) end -- Allows to override global options with user local overrides.