From a834b30c70581e505d8dd62d9c6f9de6a6eba868 Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Fri, 30 Dec 2022 20:51:13 +0100 Subject: [PATCH] fix(keys): forward `count` to keymaps. Fixes #252 --- lua/lazy/core/handler/keys.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lua/lazy/core/handler/keys.lua b/lua/lazy/core/handler/keys.lua index 9c156d7..9597aa7 100644 --- a/lua/lazy/core/handler/keys.lua +++ b/lua/lazy/core/handler/keys.lua @@ -25,6 +25,9 @@ function M.retrigger(keys) pending = pending .. c end local feed = vim.api.nvim_replace_termcodes(keys, true, false, true) .. pending + if vim.v.count ~= 0 then + feed = vim.v.count .. feed + end vim.api.nvim_feedkeys(feed, "m", false) end