Skip to content

Commit

Permalink
Allow setting keymaps to nil to disable
Browse files Browse the repository at this point in the history
  • Loading branch information
julienvincent committed Sep 10, 2023
1 parent 55cdf13 commit 28bfa55
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 28bfa55

Please sign in to comment.