From 90f356d4b522552c9f3063f1861c7e672833673d Mon Sep 17 00:00:00 2001 From: NotAShelf Date: Wed, 3 Jul 2024 19:44:04 +0300 Subject: [PATCH] ensure all keymap commands are valid Lua strings --- lua/direnv.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/direnv.lua b/lua/direnv.lua index f4d1981..779e0fa 100644 --- a/lua/direnv.lua +++ b/lua/direnv.lua @@ -14,7 +14,7 @@ local function setup_keymaps(keymaps, mode, opts) for _, map in ipairs(keymaps) do local options = 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