From 2372e21dd723641486047cf8cf00c6080f04f6eb Mon Sep 17 00:00:00 2001 From: Julien Vincent Date: Mon, 7 Aug 2023 12:22:04 +0100 Subject: [PATCH] Allow passing no opts to setup() fixes #18 --- lua/nvim-paredit/init.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lua/nvim-paredit/init.lua b/lua/nvim-paredit/init.lua index d5f3a83..3da9860 100644 --- a/lua/nvim-paredit/init.lua +++ b/lua/nvim-paredit/init.lua @@ -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