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

don't error on empty invocation of setup #83

Merged
merged 1 commit into from
Jun 19, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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