Skip to content

Commit

Permalink
fix(keybinds): correctly get keymap opts
Browse files Browse the repository at this point in the history
  • Loading branch information
ALVAROPING1 committed Jul 17, 2024
1 parent 316df47 commit 574e824
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/neorg/modules/core/keybinds/module.lua
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ module.public = {
vim.fn.hasmapto(keybind[2], mode, false) == 0
and vim.fn.mapcheck(keybind[1], mode, false):len() == 0
then
local opts = vim.tbl_deep_extend("force", { buffer = buffer }, keybinds.opts or {})
local opts = vim.tbl_deep_extend("force", { buffer = buffer }, keybind.opts or {})
vim.keymap.set(mode, keybind[1], keybind[2], opts)

bound_keys[mode][keybind[1]] = true
Expand Down

0 comments on commit 574e824

Please sign in to comment.