Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

Commit

Permalink
Merge pull request #83 from jeffhertzler/patch-1
Browse files Browse the repository at this point in the history
don't error on empty invocation of setup
  • Loading branch information
hadronized authored Jun 19, 2021
2 parents 1a8b3fb + 6874ded commit 8a45cd0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/hop/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ end
M.opts = defaults
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})

-- Insert the highlights and register the autocommand if asked to.
local highlight = require'hop.highlight'
Expand Down

0 comments on commit 8a45cd0

Please sign in to comment.