Skip to content

Commit

Permalink
Merge pull request #19 from julienvincent/jv/fix-null-opts
Browse files Browse the repository at this point in the history
Allow passing no opts to setup()
  • Loading branch information
julienvincent authored Aug 7, 2023
2 parents d7eb67e + 2372e21 commit a5b1441
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lua/nvim-paredit/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ local function setup_keybingings(filetype, buf)
end

function M.setup(opts)
opts = opts or {}

for filetype, api in pairs(opts.extensions or {}) do
lang.add_language_extension(filetype, api)
end
Expand Down

0 comments on commit a5b1441

Please sign in to comment.