fix: guard against nil keymaps
This commit is contained in:
parent
709403ccd6
commit
621f8ba4fa
1 changed files with 1 additions and 1 deletions
|
|
@ -359,7 +359,7 @@ M.setup = function(opts)
|
|||
local new_conf = vim.tbl_deep_extend("keep", opts, default_config)
|
||||
if not new_conf.use_default_keymaps then
|
||||
new_conf.keymaps = opts.keymaps or {}
|
||||
else
|
||||
elseif opts.keymaps then
|
||||
-- We don't want to deep merge the keymaps, we want any keymap defined by the user to override
|
||||
-- everything about the default.
|
||||
for k, v in pairs(opts.keymaps) do
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue