fix: remove deprecated option noremap

noremap does nothing, and remap already defaults to false.

format
This commit is contained in:
Ching Pei Yang 2026-03-27 14:25:26 +01:00
commit d80c6a5cf2
No known key found for this signature in database
GPG key ID: B3841364253DC4C8

View file

@ -65,11 +65,7 @@ end
--- @param mode string|table Vim mode for the keymap
local function setup_keymaps(keymaps, mode)
for _, map in ipairs(keymaps) do
local options = vim.tbl_extend(
"force",
{ noremap = true, silent = true },
map[3] or {}
)
local options = vim.tbl_extend("force", { silent = true }, map[3] or {})
if map[1] then
vim.keymap.set(mode, map[1], map[2], options)
end