ensure all keymap commands are valid Lua strings

This commit is contained in:
raf 2024-07-03 19:44:04 +03:00
parent 8567799d76
commit 90f356d4b5
Signed by: NotAShelf
GPG key ID: AF26552424E53993

View file

@ -14,7 +14,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.api.nvim_set_keymap(mode, map[1], tostring(map[2]), options)
end end
end end