fix: error when use_default_keymaps = false (#56)

This commit is contained in:
Steven Arcangeli 2023-02-11 18:46:14 -08:00
parent 7f17648705
commit f1ea6e0ad0

View file

@ -80,7 +80,7 @@ local M = {}
M.setup = function(opts)
local new_conf = vim.tbl_deep_extend("keep", opts or {}, default_config)
if not new_conf.use_default_keymaps then
new_conf.keymaps = opts.keymaps
new_conf.keymaps = opts.keymaps or {}
end
for k, v in pairs(new_conf) do