Skip to content

Commit

Permalink
fix: guard against nil keymaps
Browse files Browse the repository at this point in the history
  • Loading branch information
stevearc committed Nov 10, 2024
1 parent 709403c commit 621f8ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/oil/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 621f8ba

Please sign in to comment.