Skip to content

Commit 621f8ba

Browse files
committed
fix: guard against nil keymaps
1 parent 709403c commit 621f8ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/oil/config.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ M.setup = function(opts)
359359
local new_conf = vim.tbl_deep_extend("keep", opts, default_config)
360360
if not new_conf.use_default_keymaps then
361361
new_conf.keymaps = opts.keymaps or {}
362-
else
362+
elseif opts.keymaps then
363363
-- We don't want to deep merge the keymaps, we want any keymap defined by the user to override
364364
-- everything about the default.
365365
for k, v in pairs(opts.keymaps) do

0 commit comments

Comments
 (0)