From 9f9d733df9644106c258709e1c910d4034bf06ce Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Sat, 25 Mar 2023 09:56:10 +0100 Subject: [PATCH] fix(keys): dont add (n) to keys id --- lua/lazy/core/handler/keys.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lua/lazy/core/handler/keys.lua b/lua/lazy/core/handler/keys.lua index 91ece7a..73b10b7 100644 --- a/lua/lazy/core/handler/keys.lua +++ b/lua/lazy/core/handler/keys.lua @@ -25,8 +25,9 @@ function M.parse(value) if type(mode) == "table" then ---@cast mode string[] table.sort(mode) - ret.id = ret.id .. " (" .. table.concat(mode, ", ") .. ")" - elseif mode ~= "n" then + mode = table.concat(mode, ", ") + end + if mode ~= "n" then ret.id = ret.id .. " (" .. mode .. ")" end end