Skip to content

Commit

Permalink
Merge pull request #27 from julienvincent/nil-actions
Browse files Browse the repository at this point in the history
Allow setting keymaps to nil to disable
  • Loading branch information
julienvincent authored Sep 11, 2023
2 parents 55cdf13 + 28bfa55 commit f9bd28b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lua/nvim-paredit/utils/keybindings.lua
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ end

function M.setup_keybindings(opts)
for keymap, action in pairs(opts.keys) do
if not action then
return
end

local repeatable = true
if type(action.repeatable) == "boolean" then
repeatable = action.repeatable
Expand Down

0 comments on commit f9bd28b

Please sign in to comment.