fix setup_keymaps

This commit is contained in:
diniamo 2024-07-08 15:40:37 +02:00
parent abdbf48f56
commit d4fa88bd63

View file

@ -15,7 +15,7 @@ local function setup_keymaps(keymaps, mode, opts)
for _, map in ipairs(keymaps) do for _, map in ipairs(keymaps) do
local options = local options =
vim.tbl_extend("force", { noremap = true, silent = true }, opts or {}) vim.tbl_extend("force", { noremap = true, silent = true }, opts or {})
vim.api.nvim_set_keymap(mode, map[1], map[2], options) vim.keymap.set(mode, map[1], map[2], options)
end end
end end